You are not logged in.

1

Tuesday, September 20th 2016, 3:50pm

WARNING: unknown action: calc

I'm adding an action to my xml:

<action name="some_action">
copy(current_fov, view.fov);
copy(ref_fov, hotspot[some_hotspot].rz);
calc(fov_delta, current_fov - ref_fov);
trace(get(fov_delta));
</action>


and, when I call the action, I get this error message:

"WARNING: unknown action: calc"


the calculation is not performed, and the trace action outputs "null"

using krpano html5 viewer, krpano 1.18.5 (build 2015-08-04)

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, September 20th 2016, 3:52pm

Try to update to 1.19.pr7, 1.18.5 doesn't support calc(); syntax (if I'm not mistaken).
Regards,

Alexey

3

Tuesday, September 20th 2016, 4:20pm

1.19.pr7 is working.

Thanks!