Page 1 of 1

Useful tip when using * as a hotspot proxy ID

Posted: Wed Feb 19, 2020 4:05 pm
by Hopki
Hi,
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
1.png (23.55 KiB) Viewed 3292 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
3.png (25.49 KiB) Viewed 3292 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
4.png (26.11 KiB) Viewed 3292 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: 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:

2.png
2.png (28.11 KiB) Viewed 3292 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.
Regards,
Hopki

Re: Useful tip when using * as a hotspot proxy ID

Posted: Fri Dec 25, 2020 3:02 pm
by Pinur
Hi,
I am trying to limit a floating tooltip info text to appear only on Polygons and not on other hotspots. I followed your instructions but it doesn't work.
Do you have perhaps other tips.

many thanks!!

Re: Useful tip when using * as a hotspot proxy ID

Posted: Fri Dec 25, 2020 7:27 pm
by Hopki
Hi,
You can use one of the poly hotspots attributes.
What attribute of the poly hotspot are you not using,
Title, description text, target text field.
If one of these are not being used you can use this in an action filter.
Regards,