Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.getAction
7.6

<node3d>.getAction

Returns the current action

<node3d>.getAction(  
pool = 0  
)  
pool = 0
Action pool number

Remarks

This command will return the action that is currently running on the specified pool. If no action is running, None will be returned.

Return Value

Action object

Example

#Add an action to the node
fade = vizact.fadeTo(0,time=2)
node.addAction(fade)
.
.
.
#Check if the action is running
if node.getAction() == fade:
    print('Fade action is running')

See also

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