Activity › Forums › Adobe After Effects Expressions › Parent a especific keyframe
-
Parent a especific keyframe
Posted by Gabriel Silva on February 25, 2019 at 1:49 pmHello 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?
Gabriel Silva replied 7 years, 2 months ago 3 Members · 7 Replies -
7 Replies
-
Andrei Popa
February 25, 2019 at 2:23 pmTry this
thisComp.layer("B")("ADBE Transform Group")("ADBE Scale").key(2).valueAndrei
My Envato portfolio. -
Alex Printz
February 25, 2019 at 5:36 pmtry this:
linear( time, key(1).time, key(2).time, key(1).value, content(“Rectangle 1”).content(“Rectangle Path”).size);
Alex Printz
Mograph Designer -
Gabriel Silva
February 25, 2019 at 5:50 pmIt worked but I can not change the velocity of keyframes.
-
Alex Printz
February 25, 2019 at 7:47 pmokay, 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
Reply to this Discussion! Login or Sign Up
