You are not logged in.

1

Tuesday, June 15th 2021, 7:08pm

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

spacerywirtualne

Professional

Posts: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Tuesday, June 15th 2021, 10:47pm

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

Tuesday, June 15th 2021, 11:25pm

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