Sie sind nicht angemeldet.

1

Dienstag, 15. Juni 2021, 19:08

Actions on any hotspots from layer buttons

<action name="menos">
add(newscale,scale,-0.01);
tween(scale,get(newscale));
</action>



<action name="mas">
add(newscale,scale,0.01);
tween(scale,get(newscale));
</action>




I have two actions and I have two layer buttons: btn + and btn -.
How can I do so that when I do onclick any hotspot the action "menos" or the action "mas" are executed?
Thanks

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Dienstag, 15. Juni 2021, 22:47

Are you asking how to add this action dynamically to existing hotspots?

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Dienstag, 15. Juni 2021, 23:25

Yes, I do click on any hotspot and scale hotspot + or - from button layers