setting visibilty of Pinned Imaged

Q&A about the latest versions
Post Reply
HSharma​
Posts: 45
Joined: Wed Aug 02, 2017 2:32 pm

Hi Hopki,
Is there a way to hide pinned images initially?
I have a requirement where the pinned images needs to be hidden initially and then shown on a certain button click.
I just have a javascript api to set the visibilty of pinned image to show/hide. I tried calling this when my virtual tour loads, so they are hidden for a moment but then are somehow made visible again when the pano has loaded.


thanks
Harsh
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Harsh,
Using Pano2VR 7, but Pano2VR 6 is simalor.
In the skin editor, add a container and give it the ID, video_init or something like this.
Then give it the action.

1.png
1.png (43.6 KiB) Viewed 758 times

Note this is using the default ID which would be Element01 for the first video in this panorama.
If you had more than one pinned video element you would use a regular expression.
To target, all pinned videos the ID would need to be something like Element01, Element02 and so on.
You can then use a "Wild card" to target all pined videos which start with Element.

11.png
11.png (43.38 KiB) Viewed 758 times

So you add # at the start to tell Pano2VR you want to use a regular expression, then replace the number with .*
Regards,
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/
Post Reply