Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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 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?

    Gabriel Silva replied 7 years, 2 months ago 3 Members · 7 Replies
  • 7 Replies
  • Andrei Popa

    February 25, 2019 at 2:23 pm

    Try this

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

    Andrei
    My Envato portfolio.

  • Gabriel Silva

    February 25, 2019 at 3:29 pm

    did not work. I took a print.

  • Gabriel Silva

    February 25, 2019 at 3:30 pm

  • Alex Printz

    February 25, 2019 at 5:36 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

  • Gabriel Silva

    February 25, 2019 at 5:50 pm

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

  • Alex Printz

    February 25, 2019 at 7:47 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

  • Gabriel Silva

    February 25, 2019 at 8:02 pm

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy