Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.addAction
8.0

<node3d>.addAction

Adds the action

<node3d>.addAction(  
action  
pool = 0  
)  
action
Action object
pool = 0
Action pool number

Remarks

This command will add the action to the end of the specified pools waiting list. This action will run once all the previous actions on the pool complete.

Return Value

None

Example

#Create an action to fade out in 5 seconds
fadeOut = vizact.fadeTo(0,time=5)

#Create an action to move to location (0,1,0) at 5 m/s
moveTo = vizact.moveTo([0,1,0],speed=5)

#Add the fade out action to the node
node.addAction(fadeOut)

#Add the moveTo action to the node
#It won't start until the fade out action completes
node.addAction(moveTo)

See also

<node3d>.clearActionList
<node3d>.clearActions
<node3d>.endAction
<node3d>.getAction
<node3d>.pauseActions
<node3d>.resumeActions
<node3d>.runAction