hi.. this is a beginners question / or just something i didnt understand, yet...
as far as i know variables in krpano are generally global.
but doesnt that mean that using variables in actions is highly delicate?
the following simple example kills krpano,
because the 2nd for loop (in the called action) also uses i as index.
<action name="someaction">for(set(i,0), i LT 5, inc(i), trace('i2=',i));</action>
for(set(i,0), i LT scene.count, inc(i), trace('i1=',i); someaction());
of course this can be avoided in easy code like above,
but what if code gets more complex?
then how can i be sure, that an event (action) doesnt break my code because it uses a variable with the same name?
as i have seen an assigned event action like layer[5].onhover does get the layers properties as variables
does this mean using a variable name like 'width' is highly unsafe for other actions?
and how can i be sure, that the vtourskin code doesn't break my code,
for example when i click on some button and the executed vtourskin code changes variables that i am in midst of using.
i m pretty confused about this subject...
i hope somebody can bring a bit light to the mist here!
index