pymel.core.animation.play

play(*args, **kwargs)

This command starts and stops playback. In order to change the frame range of playback, see the playbackOptions command. In query mode, return type is based on queried flag.

Flags:
  • forward : f (bool) [create,query]

    When true, play back the animation from the currentTime to the maximum of the playback range. When false, play back from the currentTime to the minimum of the playback range. When queried, returns an int.

  • playSound : ps (bool) [create,query]

    Specify whether or not sound should be used during playback Flag can have multiple arguments, passed either as a tuple or a list.

  • record : rec (bool) [create,query]

    enable the recording system and start one playback loop

  • sound : s (unicode) [create,query]

    Specify the sound node to be used during playback

  • state : st (bool) [create,query]

    start or stop playing back

  • wait : w (bool) [create]

    Wait till completion before returning control to command Window.

Derived from mel command maya.cmds.play

Previous topic

pymel.core.animation.percent

Next topic

pymel.core.animation.playbackOptions

Core

Core Modules

Other Modules

This Page