"Hotspot centered in view" text variable (with distance from edges %)

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
panograma
Posts: 1
Joined: Tue Jul 19, 2022 4:11 pm

Hi Hopki;
I am developing a virtual tour with Pano2vr 7.0 Beta 4a.

I am implementing a functionality in which the user will have to "capture" certain objects (by searching for them looking arround and clicking on a camera icon when the object (ht) is centered on the screen).
For this purpose, I have created a skin-ID for the objects that need to be photographed, and I have created a boolean variable which is true the moment the user clicks on the camera icon.

I'm stuck trying to get a text variable working, which should change when the user focuses on the hotspot.

I looked for the solution to this problem with the logic block of the Skin-ID text, with the trigger:
"Hostpot Distance from Edges (%) >= 40" And
"Hostpot Distance from Edges (%) <= 60"
But,

How can I set this text element as a variable??
I imagine that with a few lines of javascript it can be solved, but I can't find a way.
Many thanks!

(I'm attaching screen capture and support package)

Esteve
Attachments
Captura (377).png
Captura (377).png (156.42 KiB) Viewed 666 times
SupportPackage_2022-08-26_12-23.zip
(1.19 MiB) Downloaded 80 times
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Need to know a bit more about this, you say the text should change when the point hotspot is within screen limits.
Where is this text box?
Is it a part of a hotspot temple or a separate text box in the skin?
But in either case, you would set up a Point Hotspot Custom Property.
Then in the skin, you would give the custom property variable its own logic block, so when the hotspot is within the screen target area the variable changes to true.
You can then trigger all sorts of things with this.
You can even make it a text variable and set text to be displayed in the hotspots custom property.
Have a look at the Custom Properties webinars:
https://ggnome.com/gg_webinars/pano2vr- ... roperties/
https://ggnome.com/gg_webinars/pano2vr- ... es-part-2/
You may find the answer you are looking for here.
Regards,
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