Skip to content

Instantly share code, notes, and snippets.

@splinecraft
Last active July 25, 2018 18:32
Show Gist options
  • Save splinecraft/95103f1b2c7bf223c05f74e5601cbee5 to your computer and use it in GitHub Desktop.
Save splinecraft/95103f1b2c7bf223c05f74e5601cbee5 to your computer and use it in GitHub Desktop.
import maya.cmds as cmds
pb_speed = cmds.playbackOptions(q=True, playbackSpeed=True)
if pb_speed == 1:
cmds.playbackOptions(e=True, playbackSpeed=0.5)
print('Playback Speed: 0.5' + '\n')
elif pb_speed == 0.5:
cmds.playbackOptions(e=True, playbackSpeed=1)
print('Playback Speed: 1.0' + '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment