remove empty keys on animation timeline

remove empty keys on animation timeline

varahaprasad
Observer Observer
760 Views
1 Reply
Message 1 of 2

remove empty keys on animation timeline

varahaprasad
Observer
Observer

Hi, i am currently working on a project. i am doing animation on 2's. so there are empty frames between each key. it is taking a lot of time to render, can we remove empty keys on animation time line. so we can reduce render time.

for example i have keys on frames 1, 3, 5, 10, 15, 17 and 20. i want to remove those empty key frames between these main keys and adjusted the main keys in every next frame, that is frame 1, 2, 3, 4, 5, 6 and 7. so i have keys on each frame. can we do that.
thank you.
 
0 Likes
761 Views
1 Reply
Reply (1)
Message 2 of 2

Kahylan
Advisor
Advisor

Hi!

 

If your keys are consistently on 2's, Just select all your objects, go to the grapheditor, select your keys there and then scale your keys by a factor of 0.5 by using Edit->Scale with these settings:

 

Scale_settings.png

 

Now, if you don't consistently work on twos but you have a variable frame rate, I would just take the hit in rendertime instead of having to recalculate the framerate over all your shots in post. But if you really wanted to do this you would have to write a script that does the following:

 

1) selects all the objects that have animation

2) runs through the timeline by changing the current frame

3) checks it there isn't a keyframe on the current frame

4) checks whath the next frame is that has a keyframe on any object

5) inserts a key on all object on the that frame

6) moves that keyframe back to the currenttime.

 

This script would be quite hard to create since it also would have to ignore set driven keys and be written in a way that is doesn't break customised tangents, so I didn't have the time to write it for you. But that would be the steps it would need to do.

 

I hope it helps

0 Likes