Useful tip when using * as a hotspot proxy ID

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

Wed Feb 19, 2020 4:05 pm

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 3383 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 3383 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 3383 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 3383 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
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Pinur
Posts: 1
Joined: Mon Dec 14, 2020 11:39 am

Fri Dec 25, 2020 3:02 pm

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!!
Attachments
Screenshot 2020-12-25 at 14.59.07.png
Screenshot 2020-12-25 at 14.59.07.png (73.1 KiB) Viewed 212 times
User avatar
Hopki
Gnome
Posts: 11124
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Dec 25, 2020 7:27 pm

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,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply