Page 1 of 1

setting visibilty of Pinned Imaged

Posted: Sat Sep 03, 2022 8:40 pm
by HSharma​
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

Re: setting visibilty of Pinned Imaged

Posted: Wed Sep 21, 2022 11:46 am
by Hopki
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 1016 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 1016 times

So you add # at the start to tell Pano2VR you want to use a regular expression, then replace the number with .*
Regards,