Skip to content

Instantly share code, notes, and snippets.

@JFlynnXYZ
Last active August 29, 2015 14:14
Show Gist options
  • Save JFlynnXYZ/b34fb0898213b88a1ac1 to your computer and use it in GitHub Desktop.
Save JFlynnXYZ/b34fb0898213b88a1ac1 to your computer and use it in GitHub Desktop.
Offset Animation Keyframes
'''Allows a simple offset of all keyframes from a list of selected objects.
selection => all of the currently selected objects in the seen. This will be the translate nodes for each object.
time=(0,100) => set this to the time range of the animation
'''
selection = cmds.ls(selection=True)
for s in selection:
cmds.keyframe('%s.rotateX' % s, edit=True, time=(0,100) ,valueChange=90, relative=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment