How to access arguments of JavaScript type actions? I had to add a non-JavaScript wrapper action. Is there a way?
Krpano Javascript Action Arguments
-
-
Hi,
there are currently these variables predefined inside Javascript actions:
- krpano - the krpano interface object
- args[] - an Array with the passed arguments (args[0] = the name of the action, args[1] = first parameter, ...)
- caller - the caller object of the action (the object of the <layer> or <hotspot> element)
- resolve() - an function for resolving/getting the value of a krpano variable/path
- actions - an object for accessing the native krpano actions (e.g. call 'actions.tween(...);' to call the tween action);
More informations about Javascript actions on the final 1.19 release.Best regards,
Klaus -
Thanks a lot!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!