Created
March 5, 2020 09:28
-
-
Save Roumenov/094e9c91cc608dd55a10a82abc7b09c2 to your computer and use it in GitHub Desktop.
simple proc to offset keys
This file contains hidden or 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
import pymel.core as pm | |
targets = ['Corsac_R_brow_CTL_04', 'Corsac_R_brow_CTL_03', 'Corsac_R_brow_CTL_02', 'Corsac_R_brow_CTL_01'] | |
controls = pm.ls(targets, recursive = True) | |
for item in controls: | |
pm.selectKey(item, attribute = 'rotateZ', replace = True) | |
pm.keyframe(edit = True, relative = True, valueChange = -180.0) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment