View Full Version : force keyframes to interpolate only every other frame
payton 04-27-2006, 08:49 PM hi again! :)
im searching for a method to interpolate only every other (or maybe every third) frame between two keys. i dont want to use the option of precomposing in conjunction with "maintain frame rate". this wont fit into my special workflow.
maybe there is a tiny little expression out there that helps me out...??
thanks again,
payton
|
|
Vympel
04-27-2006, 10:20 PM
The hold interpolation donīt work to this case??
Mylenium
04-28-2006, 07:07 AM
yepp, simple hold keyframes will be the way to go. You could cobble up some expressions, but it would be pretty complex for such a simple task.
Mylenium
payton
04-28-2006, 07:22 AM
hold keyframes wont do the trick.
lets say i wanna scale a layer up from 1% at frame 1 to 100% at frame 100. with hold keyframes i need to set 50 keyframes. but what i want to do is setting keys on 1 and 100 and let after effects interpolate on 2īs the whole range. yes, i know that it is possible with pre-composing. but i thought there will be a simple way to fix it. if not - i need to precompose anyway...
payton
for those who are interested in:
why pre-composing isnīt the first choice - i have a lot of layers, all with different timings. some layers are animated on 2īs some on 3īs and a few one on 1īs. some layers change this behaviour in the middle of the comp (dont ask me why. im not the director who wrote the dopesheets ;)). if i need to precompose every single layer, changes in animation and timinig are getting pretty time consuming after that.
Mylenium
04-28-2006, 05:19 PM
Try this:
my_step=25/3; //comp's framerate divided by step
posterizeTime(my_step);
my_time=timeToFrames();
my_start=timeToFrames(key(1).time); //time of first keyframe
my_end=timeToFrames(key(2).time); //time for second keyframe
my_start_value=valueAtTime(my_start)[0];
my_end_value=valueAtTime(my_end)[0];
my_value=linear(my_time,my_start,my_end,my_start_value,my_end_value);
[my_value,my_value]
Mylenium
payton
05-01-2006, 11:03 AM
hi mylenium,
im sorry that im answering so late, but i didnīt got a mail-notification of your reply. dont know why. never happened before.
this works just perfect! thank you so much. this will save me lots of time and give me much more flexibility. i think i need to re-read this expression a few times to understand whats really going on under the hood. but for now im just glad to just use it as is :)
thx again,
payton
CGTalk Moderation
05-01-2006, 11:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.