pymel.core.animation.playbackOptions

playbackOptions(*args, **kwargs)

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 : aet (time) [create,query,edit]

    Sets the end time of the animation. Query returns a float.

  • animationStartTime : ast (time) [create,query,edit]

    Sets the start time of the animation. Query returns a float.

  • by : by (float) [create,query,edit]

    Increment between times viewed during playback. (Default 1.0) Flag can have multiple arguments, passed either as a tuple or a list.

  • framesPerSecond : fps (bool) [create,query]

    Queries the actual playback rate. Query returns a float.

  • loop : l (unicode) [create,query,edit]

    Controls if and how playback repeats. Valid values are once,continuous,and oscillate.Query returns string.

  • maxPlaybackSpeed : mps (float) [create,query,edit]

    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) [create,query,edit]

    Sets the end of the playback time range. Query returns a float.

  • minTime : min (time) [create,query,edit]

    Sets the start of the playback time range. Query returns a float.

  • playbackSpeed : ps (float) [create,query,edit]

    Sets the desired playback speed. Query returns a float.

  • view : v (unicode) [create,query,edit]

    Controls how many modelling views update during playback. Valid values are alland active. Query returns a string.

Derived from mel command maya.cmds.playbackOptions

Previous topic

pymel.core.animation.play

Next topic

pymel.core.animation.playblast

Core

Core Modules

Other Modules

This Page