You are not logged in.

1

Monday, October 15th 2012, 11:59am

action1 finish go action 2

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,

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Monday, October 15th 2012, 4:00pm

Hi!
What us the problem?

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Monday, October 15th 2012, 4:29pm

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 ?

This post has been edited 1 times, last edit by "crom1" (Oct 15th 2012, 4:48pm)


Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Monday, October 15th 2012, 7:16pm

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 *thumbup*


PS - hope this little tutorial will help you understand krpano actions logic *rolleyes*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

5

Thursday, October 18th 2012, 12:10pm

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

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

6

Thursday, October 18th 2012, 2:20pm

Hi!
hm....
wait() - stops all actions and tween too.
I think better use delayedcall(delay,delayedaction());

Reards
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN