Go to: Synopsis. Flags. Return value. Python examples.
play([forward=boolean], [playSound=boolean], [record=boolean], [sound=string], [state=boolean], [wait=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
play is undoable, queryable, and editable.
This command starts and stops playback.
In order to change the frame range of playback,
see the playbackOptions command.
forward, playSound, record, sound, state, wait
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
None.
import maya.cmds as cmds
# Begin playback from min to max
#
cmds.play( forward=True )
# Begin playback from max to min
#
cmds.play( forward=False )
# Stop (forward or backward) playback
#
cmds.play( state=False )
# Record mode through one playback loop
#
cmds.play( record=True )
# Are we playing back? Returns 1 if yes, 0 if no.
#
cmds.play( q=True, state=True )
Return to Autodesk Index