Hi,
is this function right, if not what is right way to write it?
add(tmp, tmp, mul(82,2));
thanks
--
Pratiks
Hi,
is this function right, if not what is right way to write it?
add(tmp, tmp, mul(82,2));
thanks
--
Pratiks
Nope, krpano functions don't have returnvalues.
This is what you would do:
This first creates a variable term by multiplying 82 by 2, and then adds this to variable tmp.
Alternatively you can shorten the second line:
For most functions, the convention is that the first argument is (the name of) the variable which will hold the result.
Hi ahoeben,
thanks...for your reply.
aslo i have one more issue.
i am gettting the "action call' event in variable.
set(abc, action1(););
now i want to call using get(abc).
it will show the right value in trace(get(abc));
but is not call the action1(); using get command.
is there way to call the action1() from abc variable.
thanks
--
Pratiks
Hi Aldo,
call(get(abc)); should not work ... it execute the get action so returns the value of abc but do not execute the returned value ...
call(abc); should work...
SAlut.
Interesting, thanks.
Hi All,
thanks all for your support... :)
I have tried both call(get(abc)); and call(abc); the way but none of these are working for me.
I am calling that event from
<scene name="scene_pano1" onstart="call(get(abc));">
I am getting following error in my Safari iPad useragent.
WARNING: unknown action command: abc
I forgot to mention it is going be used for iPad/iPhone.
thanks
--
Pratiks
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!