I posted a project that used Polygon Hotspots to open a popup after all were clicked.
It can be found here: viewtopic.php?f=6&t=14242#p59983
Normally when you link a Point or Polygon Hotspot to a skin element such as a Rectangle you use the Hotspot Proxy ID.
So in the skin have a Rectangle with the action Mouse Click, Toggle Visibility.
In the properties of the Rectangle, you will see Hotspot Proxy ID. You enter the ID of the hotspot here, as an example Poly01.
When you create the output and click the Polygon Hotspot, the Hotspot Proxy ID links the Polygon Hotspot to the Rectangle and any actions in the Rectangle will be actioned. In this case, as you click the Polygon Hotspot the Rectangle will show and hide.
However, rather than using the ID of the Hotspot you can use a "wild card" which is the asterisk *.
The action will now work with any Hotspot, be it Point or Polygon.
The problem now is you may not want all Hotspots to work with it, so how do you do that?
The answer is to use the Action Filter, please see this page for more information: https://ggnome.com/doc/pano2vr/6/skin-action-filters/
So in this instance, I want only Polygon Hotspots to show and hide the Rectangle and not any Point Hotspots.
What you would do is in the Polygon Hotspots Description text field you could enter a "P", or any other letter of number.
Then back in the skin add an Action filter to the Rectangle's action, Mouse Click, Toggle Visibility.
It would look like this:
So now only Polygon Hotspots will toggle the Rectangle.
Using this same method you can actually get different Polygon Hotspots to do different things, so one may be linked to a rectangle that shows and hides while another could be linked to a rectangle that changes its Alpha just by changing the letter in the Description text field and Action Filter.
Hope you find this useful.
Special forum to share and discuss skins for Pano2VR and Object2VR
1 post • Page 1 of 1
- Posts: 10833
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK