how to copy a Polygon ID to a variable?

Q&A about the latest versions
Post Reply
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

I searched the board and couldn't find a way to copy a Polygon ID to a variable with an action.

I have several Polygons with a different name. It is important that each polygon has a different name.
eg: Poly01, Poly02, Poly03 ...
Each polygon has text attached to it.
eg: Poly01: text1, Poly02: text2, Poly03: text3 ...

I have the text displayed with a dialog box.

I created a folder with the following actions. I can display the text of 1 Polygon at a time.

Do I need to create a folder to display the text for each polygon, or is there another way?
pano2vr_poly_hotspot.jpg
pano2vr_poly_hotspot.jpg (80.18 KiB) Viewed 734 times
Serge
Version: V7.01
Windows 10
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Serge,
Use the * (Asterisk) which is a wild card in the Hotspot Proxy ID text box.
This will then work with any Poly or Point Hotspot.
To stop this triggering with the wrong hotspot you can use an action filter that looks at the hotspot "target" text field. Here you can add the word info, or just "i".
Then the action filter would be set up to look for Hotspot target text to = i, then trigger the action.
See the attached project.
Regards,
Attachments
PolyHotspots.zip
(14.75 KiB) Downloaded 87 times
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/
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

Ha! Here is the little code I was missing.

Thanks again!
Serge
Version: V7.01
Windows 10
Post Reply