"Hotspot centered in view" text variable (with distance from edges %)
Posted: Fri Aug 26, 2022 12:27 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
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