Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Of the keys that are selected, deselect only those that are in the current animation frame.
The code selects the current key and one before and one after the current time, I just need to deselect the one that is currently located on the timeline and I don't know how to do it.
Here is a video example of how I want it to be deselected.
keyA = mc.currentTime(q = True)
ttA = mc.findKeyframe(t = (keyA,keyA), w = "previous")
ttB = mc.findKeyframe(t = (keyA,keyA), w = "next")
cmds.selectKey(animation='objects',add=False,t=(ttA,ttB))
Solved! Go to Solution.