Your Ad Here

Go to: Synopsis. Flags. Return value. Python examples.

Synopsis

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.

Flags

animationEndTime, animationStartTime, by, framesPerSecond, loop, maxTime, minTime, playbackSpeed, view
Long name (short name) [argument types] Properties
loop(l) string createqueryedit
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 createqueryedit
sets the start of the playback time range. Query returns float.

In query mode, this flag needs a value.

maxTime(max) time createqueryedit
sets the end of the playback time range. Query returns float.

In query mode, this flag needs a value.

animationStartTime(ast) time createqueryedit
sets the start time of the animation. Query returns float.

In query mode, this flag needs a value.

animationEndTime(aet) time createqueryedit
sets the end time of the animation. Query returns float.

In query mode, this flag needs a value.

playbackSpeed(ps) float createqueryedit
sets the desired playback speed. Query returns float.

In query mode, this flag needs a value.

framesPerSecond(fps) float createquery
queries the actual playback rate. Query returns float.

In query mode, this flag needs a value.

view(v) string createqueryedit
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 createqueryedit
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.

Return value


string or float Query of edited option.

Python examples

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


Your Ad Here