Activity › Forums › Adobe After Effects Expressions › getting specific keyframe info from another keyframe of the same layer
-
getting specific keyframe info from another keyframe of the same layer
Posted by Dogus Aslan on January 14, 2009 at 3:09 pmhi..
is it possible to get keyframe data from (at a given time)from another keyframe for the same property? im sure its a simple expression, but i cant seem to do it?
in other word changing the first keyframe will also effect another one…
Dogus Aslan replied 17 years, 7 months ago 3 Members · 6 Replies -
6 Replies
-
Dan Ebberts
January 14, 2009 at 5:53 pmYou can get the value of the first keyframe like this:
key(1).value
What are you trying to do, exactly?
Dan
-
Dogus Aslan
January 15, 2009 at 1:21 pmhi dan,
what im trying to do is create an afx project that will zoom into preedited world maps, the tricky part is that im trying to put the project into automation. so that someone not knowing afx effects can render the project..iam using null olbjects for the user to drag the targets in only one frame of the comp…but other keyframes have to get the data from that specific keyframe..
i will need an expression to get a specific keyframes’ value from a specific layer? do you think its possible?
dogus
-
Dan Ebberts
January 15, 2009 at 4:47 pm>i will need an expression to get a specific keyframes’ value from a specific layer? do you think its possible?
Yes, like this:
thisComp.layer(“Layer 1”).transform.position.key(1).value
But I’m not sure how that is going to help you. If you’re after some kind of proportional scaling or repositioning, it seems like you’d be better off controling it with a slider.
Dan
-
Dogus Aslan
January 16, 2009 at 11:28 amyes dan this works but i need to add another independent keyframe after the expression..in other words i am getting the value of that keyframe from that time but i need that info to be the inittial keyframe?
-
Filip Vandueren
January 17, 2009 at 2:50 pmIf I understand correctly, the automation-monkeys would move the position of a couple of nulls on a map, and then the animation will just pan the map with a set timing from position 1 to 2 to 3.
Will there always the same amount of stops / Nulls ? Is it a preset timing ?
Is it just moving a layer, or is there some scaling involved ?
I’ve created something like this once, where in one comp I would position a sort of crop-window over a worldmap, and that would drive the position & scaling in another comp.
Pan & Scan with an overview if you will.
The same thing could be achieved with guide-layers in one comp: so the automation monkeys can only move certain numbers (so they know the order is correct), the rest are locked & shy layers they can’t touch, and those “interface”-layers won’t be rendered becuse they’re guide layers.If you give a bit more information on what exactly you want to achieve with the map, I think it won’t be too difficult to fabricate something.
-
Dogus Aslan
January 23, 2009 at 9:15 amsorry to keep you guys waiting..yes filip it is something like that and Dan as i said before an image is worth a thousand words..as promised, here is the link to the video its 4mb’s.:
https://rapidshare.com/files/188082020/Sequence_01.mp4
what do you think?
Reply to this Discussion! Login or Sign Up