ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Parent a especific keyframe

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gabriel Silva
Parent a especific keyframe
on Feb 25, 2019 at 1:49:13 pm

Hello guys! I'm sorry for the writing, I'm translating for google.
Anyway, I have a rectangle A and a rectangle B.
Rectangle A has a fixed scale.
In rectangle B I have an animation with 2 keyframes of the scale.
I need to parent the last keyframe of rectangle B with the scale of rectangle A.

Can you help me?


Return to posts index

Andrei Popa
Re: Parent a especific keyframe
on Feb 25, 2019 at 2:23:19 pm

Try this


thisComp.layer("B")("ADBE Transform Group")("ADBE Scale").key(2).value

Andrei
My Envato portfolio.


Return to posts index

Gabriel Silva
Re: Parent a especific keyframe
on Feb 25, 2019 at 3:29:06 pm

did not work. I took a print.


Return to posts index


Gabriel Silva
Re: Parent a especific keyframe
on Feb 25, 2019 at 3:30:14 pm



Return to posts index

Alex Printz
Re: Parent a especific keyframe
on Feb 25, 2019 at 5:36:37 pm

try this:

linear( time, key(1).time, key(2).time, key(1).value, content("Rectangle 1").content("Rectangle Path").size);

Alex Printz
Mograph Designer


Return to posts index

Gabriel Silva
Re: Parent a especific keyframe
on Feb 25, 2019 at 5:50:59 pm

It worked but I can not change the velocity of keyframes.


Return to posts index


Alex Printz
Re: Parent a especific keyframe
on Feb 25, 2019 at 7:47:00 pm

okay, this is an unusual way to do this, but it should work with some restrictions (so long as the two different keys are not the same X-size). The only way to tweak the velocity of keys is on the actual property (scale), so I am telling it to look at how it changes from the first into the 2nd key for the x-property, but instead of acting as that value to instead grab the other rectangle's value. Hope it works for you:

linear(value[0], key(1).value[0], key(2).value[0], key(1).value, content("Rectangle 1").content("Rectangle Path").size);

Alex Printz
Mograph Designer


Return to posts index

Gabriel Silva
Re: Parent a especific keyframe
on Feb 25, 2019 at 8:02:07 pm

Oks Thanks so much for the tips! They helped me a lot!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]