Page 1 of 1

Actions to hide/show pano

Posted: Sun Jul 22, 2018 10:50 am
by bherbes
Newbie questions...

Q1
I have one special pano in my tour that by design is not linked to the main tour. I only want users to access it via a button. The question I have is which action do I apply to to the button hide/show that pano?
When I use MouseClick>OpenNextPano>PanoName it displays the pano as desired, but how do I set a second MouseClick on the same button and close the pano and ....reveal the last pano visited.

Q2 re containers
Can actions be targeted to containers and automatically hide/show every element within the container?
Or is it better to apply actions to all elements within a container.

Re: Actions to hide/show pano

Posted: Sun Jul 22, 2018 3:01 pm
by Tony
Q1
I have one special pano in my tour that by design is not linked to the main tour. I only want users to access it via a button. The question I have is which action do I apply to to the button hide/show that pano?
When I use MouseClick>OpenNextPano>PanoName it displays the pano as desired, but how do I set a second MouseClick on the same button and close the pano and ....reveal the last pano visited.
Can this special pano be accessed from any of the nodes in the main tour? If so I presume you want that close button to return you to the specific node you came from?
Q2 re containers
Can actions be targeted to containers and automatically hide/show every element within the container?
Or is it better to apply actions to all elements within a container.
Yes actions can be targeted to containers (Parent) and the elements (Children) within that container will follow the action. You can see how child elements react in this example when you click on the 'Change Container Size' https://s3-ap-southeast-2.amazonaws.com ... index.html.

zoom_pan_multiple_14.jpg
zoom_pan_multiple_14.jpg (907.75 KiB) Viewed 554 times

Note: even though all of the elements have been scaled they still retain any actions assigned to them. The other attribute of a container is the fact that is can mask elements within it. You can also nest containers within containers!

Wherever possible I try to put elements that form a related unit within a container.

Tony