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

<node3d>.runAction

Run the action

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

Remarks

This command is the equivalent of calling clearActions followed by addAction. It will clear all the actions on the pool before adding the action to the waiting list. This ensures that the action will begin immediately.

Return Value

None

Example

#Add an action
node.addAction(vizact.sizeTo([2,2,2],speed=1))
.
.
.
#Clear all the actions and run this one
node.runAction(vizact.spin(0,1,0,90))

See also

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