Useful tip when using * as a hotspot proxy ID

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Posts: 10833
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Wed Feb 19, 2020 4:05 pm

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.

1.png (23.55 KiB) Viewed 3144 times

In the properties of the Rectangle, you will see Hotspot Proxy ID. You enter the ID of the hotspot here, as an example Poly01.

3.png (25.49 KiB) Viewed 3144 times

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 *.

4.png (26.11 KiB) Viewed 3144 times

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:

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:

2.png (28.11 KiB) Viewed 3144 times

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.
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
Post Reply