Go to: Synopsis. Flags. Return value. Python examples.
playbackOptions([animationEndTime=time], [animationStartTime=time], [by=float], [framesPerSecond=float], [loop=string], [maxTime=time], [minTime=time], [playbackSpeed=float], [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, or the -by
value are undoable.
animationEndTime, animationStartTime, by, framesPerSecond, loop, maxTime, minTime, playbackSpeed, view
| Long name (short name) |
[argument types] |
Properties |
loop(l)
|
string
|
 
|
|
Controls if and how playback repeats. Valid values are
"once," "continuous," and "oscillate." Query returns string.
In query mode, this flag needs a value.
|
|
minTime(min)
|
time
|
 
|
|
sets the start of the playback time range. Query returns
float.
In query mode, this flag needs a value.
|
|
maxTime(max)
|
time
|
 
|
|
sets the end of the playback time range. Query returns
float.
In query mode, this flag needs a value.
|
|
animationStartTime(ast)
|
time
|
 
|
|
sets the start time of the animation. Query returns float.
In query mode, this flag needs a value.
|
|
animationEndTime(aet)
|
time
|
 
|
|
sets the end time of the animation. Query returns float.
In query mode, this flag needs a value.
|
|
playbackSpeed(ps)
|
float
|
 
|
|
sets the desired playback speed. Query returns float.
In query mode, this flag needs a value.
|
|
framesPerSecond(fps)
|
float
|

|
|
queries the actual playback rate. Query returns float.
In query mode, this flag needs a value.
|
|
view(v)
|
string
|
 
|
|
Controls how many modelling views update during playback.
Valid values are "all" and "active" . Query returns string.
In query mode, this flag needs a value.
|
|
by(by)
|
float
|
 
|
|
Increment between times viewed during playback. (Default 1.0)
In query mode, this flag needs a value.
|
|
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.
|
string or float
Query of edited option.
import maya.cmds as cmds
cmds.playbackOptions( loop='continuous' )
cmds.playbackOptions( minTime='0sec', maxTime='1sec' )
# Playback every 2nd frame
#
cmds.playbackOptions( by=2 )
Return to Autodesk Index