hi,
i would like the action 2 when action1 finish
<action name="action1">
tween(plugin[to].scale, 3, 2,default,action2());
</action>
<action name="action2">
set(plugin[to2].visible,true)
</action>
thanks,
hi,
i would like the action 2 when action1 finish
<action name="action1">
tween(plugin[to].scale, 3, 2,default,action2());
</action>
<action name="action2">
set(plugin[to2].visible,true)
</action>
thanks,
Hi!
What us the problem?
Andrey
sorry it's works now
it's possible to make loop vith value variable
for(set(i,0), i LT 20
textdd(var1,image,get(i));
set(plugin[var1].visible,true);
wait 3;
textdd(var2,image,add(get(i),2);
set(plugin[var2].visible,true);
set(plugin[var1].visible,false);
set(plugin[var2].visible,false);
);
i don't knows if is works ?
Hi!
for loop looks like this
for( set(i,0), i LT 20, inc(i),
...
actions
...
);
so, in your case it must be
for( set(i,0) , i LT 20, inc(i),
textdd(var1,img,get(i));
set(plugin[get(var1)].visible,true);
wait(3);
add(somevar,get(i),2);
textdd(var2,img,get(somevar));
set(plugin[get(var2)].visible,true);
set(plugin[get(var1)].visible,false);
);
NOTE! - don't use "image" variable name, it's reserved krpano tag.
for use variable value use get() action
wait - is the wait(delay) action -> wait(3);
actions add,sub, mul etc. can't be used in other actions directly.
Regards
Andrey
PS - hope this little tutorial will help you understand krpano actions logic
hi andrey
i make this
<action name="boucle">
for(set(i,2), i LT 10, inc(i), txtadd(var1,photo,get(i));
wait(2);
add(var2,get(i),1);
add(var3,get(i),2);
txtadd(var2,photo,get(var2));
txtadd(var3,photo,get(var3));
trace('var=',var1,var2,var3);
tween(plugin[get(var1)].scale, 4, 0.7); <!--tween1 -->
tween(plugin[get(var2)].scale, 2, 0.7,default,set(plugin[get(var3)].visible,true);wait(0.5)); <!--tween2 -->
);
</action>
but tween 1 dont work
i wouldlike tween 1 and tween 2 at the same time and when are finish start this set(plugin[get(var3)].visible,true)
thanks
Hi!
hm....
wait() - stops all actions and tween too.
I think better use delayedcall(delay,delayedaction());
Reards
Andrey
Don’t have an account yet? Register yourself now and be a part of our community!