Go to: Synopsis. Return value. Flags. Python examples.
playbackOptions([animationEndTime=time], [animationStartTime=time], [blockingAnim=boolean], [by=float], [framesPerSecond=boolean], [loop=string], [maxPlaybackSpeed=float], [maxTime=time], [minTime=time], [playbackSpeed=float], [selectionEndTime=time], [selectionStartTime=time], [selectionVisible=boolean], [stepKeyLoop=boolean], [stepLoop=boolean], [view=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
playbackOptions is undoable, queryable, and editable.
This command sets/queries certain values associated
with playback: looping style, start/end times, etc.
Only commands modifying the -minTime/maxTime,
the -animationStartTime/animationEndTime,
the -selectionStartTime/selectionEndTime/selectionVisible
or the -by value are undoable.
string | or float
Query of edited option. |
In query mode, return type is based on queried flag.
animationEndTime, animationStartTime, blockingAnim, by, framesPerSecond, loop, maxPlaybackSpeed, maxTime, minTime, playbackSpeed, selectionEndTime, selectionStartTime, selectionVisible, stepKeyLoop, stepLoop, view
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.
|
import maya.cmds as cmds
cmds.playbackOptions( loop='continuous' )
cmds.playbackOptions( minTime='0sec', maxTime='1sec' )
cmds.playbackOptions( selectionStartTime='0sec', selectionEndTime='1sec' )
cmds.playbackOptions( selectionVisible=False )
# Playback every 2nd frame
#
cmds.playbackOptions( by=2 )