Skip to content

Instantly share code, notes, and snippets.

@splinecraft
Created February 8, 2020 21:56
Show Gist options
  • Save splinecraft/fc1da8b26d7ba2ae6696ebcad9b93813 to your computer and use it in GitHub Desktop.
Save splinecraft/fc1da8b26d7ba2ae6696ebcad9b93813 to your computer and use it in GitHub Desktop.
import pymel.core as pm
curves = pm.keyframe(q=True, sl=True, name=True)
for curve in curves:
key_vals = pm.keyframe(curve, q=True, vc=True)
start_val = key_vals[0]
pm.keyframe(curve, e=True, vc=start_val*-1, relative=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment