Last active
August 29, 2015 14:14
-
-
Save JFlynnXYZ/b34fb0898213b88a1ac1 to your computer and use it in GitHub Desktop.
Offset Animation Keyframes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''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