PDA

View Full Version : run multiple actions simultaneously


durf
05-08-2009, 11:39 AM
Hello,

I cannot seem to figure out how to run actions simultaneously. Everything I try does one before another. Is there a way to make two things happen at once.

resize = vizact.size(.15,.15,.15,30,viz.time)
move = vizact.goto(0,14,-20,2)

any way to make these happen at the same time?

Thanks

farshizzo
05-08-2009, 12:17 PM
Have a look at the documentation for node.addAction and node.runAction. Both these commands have an optional pool parameter. Adding actions to different pools allows you to run them simultaneously.

Another way to run actions in parallel is to use the vizact.parallel command, also in the docs.