Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Delete the next key from your selection (work only on your timeline)
- import maya.cmds as mc
- sel = mc.ls(sl=True, flatten=True)
- ctime = mc.currentTime(query=True)
- playback = mc.playbackOptions(animationStartTime=True, query=True), mc.playbackOptions(animationEndTime=True, query=True)
- nextkey = mc.findKeyframe(which='next')
- for obj in sel:
- if nextkey > playback[0] and nextkey <= playback[1]:
- mc.cutKey(cl=True,time=(nextkey, nextkey))
Add Comment
Please, Sign In to add comment