Notifications
Clear all

[Closed] Snap all keyframes to frames

Hi, I have some keys on subframes in my object (not only position, rotation, scale, but also in modifiers). Is there a way to snap all keys to frames?

2 Replies

btw… how do you snap keys?

never mind… here is how to do it right:

fn snapTime t x = (floor (t + 0.5).frame)
mapKeys $ snapTime 0 #allKeys

you can use the second argument (x) of snapTime function the way you want. in my sample i just don’t need it.

So mapKeys was the function I was looking for, thanks a lot Denis, what would I do without your help