Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 21, 2014 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/b0c796f5576c60fee2c9 to your computer and use it in GitHub Desktop.
Save fereria/b0c796f5576c60fee2c9 to your computer and use it in GitHub Desktop.
def getNextKey(node):
st = pm.findKeyframe(node,w="first")
end = pm.findKeyframe(node,w="last")
yield st
while 1:
next = pm.findKeyframe(node,time=(st,st),w="next")
yield next
if end == next:
break
st = next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment