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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
animationEndTime (aet) | time | ||
|
|||
animationStartTime (ast) | time | ||
|
|||
by (by) | float | ||
|
|||
framesPerSecond (fps) | bool | ||
|
|||
loop (l) | unicode | ||
|
|||
maxPlaybackSpeed (mps) | float | ||
Sets the desired maximum playback speed. Query returns a float. The maxPlaybackSpeed is only used by Maya when your playbackSpeed is 0 (play every frame). The maxPlaybackSpeed will clamp the maximum playback rate to prevent it from going more than a certain amount. A maxPlaybackSpeed of 0 will give free (unclamped) playback. |
|||
maxTime (max) | time | ||
|
|||
minTime (min) | time | ||
|
|||
playbackSpeed (ps) | float | ||
|
|||
view (v) | unicode | ||
|
Derived from mel command maya.cmds.playbackOptions
Example:
import pymel.core as pm
pm.playbackOptions( loop='continuous' )
# Result: u'continuous' #
pm.playbackOptions( minTime='0sec', maxTime='1sec' )
# Result: 0.0 #
# Playback every 2nd frame
#
pm.playbackOptions( by=2 )
# Result: 2.0 #