Cannot toggle visibility of %objectName in Pano2VR5.01

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Howard
Posts: 209
Joined: Wed Jun 03, 2009 5:58 am

In v. 4 I was able to toggle the visibility of all the hotspots by using "%hotspots." This does not seem to work in v. 5.01 Pro; some hotspots hide, others do not.
toggleVis.jpg
toggleVis.jpg (15.82 KiB) Viewed 2058 times
The red spiral button on the toolbar should hide all hotspots, but now it does not. Example:
http://www.voicesfromthedawn.com/wp-con ... /combined/

But when I change the action to toggle the ALPHA to 0, rather than toggling the visibility, then using "%hotspots" as the target does indeed affect all instances of hotspots.
Example:
http://www.allaroundnevada.com/wp-conte ... /combined/

Is this workaround necessary? This FORMERLY worked fine with toggling the visibility, in V. 4. I believe this possible bug was introduced in 5.01, as I did not notice it in v. 5.0

Thank you.
User avatar
Hopki
Gnome
Posts: 13028
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Howard,
I know I answered this by support e-mail but for al that are seeing this post I will repeat.
In version 5 you would use a variable and set variable action.

Please see the attached project, unzip and publish.
variable.zip
(1.17 MiB) Downloaded 159 times
Example to show and hide hotspots templates:

In the skin set a variable called "hide_hs", type: True/False, init value: false.
The button to toggle the visibility would have the following action.

Mouse Click, Set Variable Value, hide_hs, Not(¬)

The Operation: Not(¬) will toggle the true/false variable.
So if its NOT true, on click change it to true.
The next click will be if its NOT false, change it to false, and so on.

Now in the hotspot template click the logic block next to visible and set:
Trigger: *hide_hs
Comparison: =
Value: true

Visible: false

The logic here is simple, if the variable "hide_hs" = true, then the hotspot is hidden.
If the variable hide_hs is false then you see it.

As you have a variable set you can use this same variable to do other things. In this example Im using the variable to also change the text in the text box using a text logic block. And of course this works on desktops and well as mobile devices.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Howard
Posts: 209
Joined: Wed Jun 03, 2009 5:58 am

Thanks, Hopki.

I have it working now with variables & logic blocks.

Seems much more complex, but I guess these methods open a new realm of possibilities going forward.

Howard
Post Reply