Notifications
Clear all

[Closed] Deleting every other keyframe of camera data

Hello,

I have some camera data that I’m importing into max that has bad keyframe data every OTHER keyframe. So I was wondering if there’s a way to delete every other keyframe (odd or even) for all the data tracks of a given camera.

Any ideas anyone?

Thanks!

2 Replies
 lo1

assuming the camera is selected and it’s the position track you want to filter:

for i = $.pos.controller.keys.count to 1 by -2 do deleteItem $.pos.controller.keys i

or

for i = ($.pos.controller.keys.count-1) to 1 by -2 do deleteItem $.pos.controller.keys i

depending if you want even or odd keys

That worked like a charm, thanks so much!