Skip to content

Instantly share code, notes, and snippets.

@Roumenov
Created March 5, 2020 09:28
Show Gist options
  • Save Roumenov/094e9c91cc608dd55a10a82abc7b09c2 to your computer and use it in GitHub Desktop.
Save Roumenov/094e9c91cc608dd55a10a82abc7b09c2 to your computer and use it in GitHub Desktop.
simple proc to offset keys
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