Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions link value effect above on same layer

  • link value effect above on same layer

    Posted by Juanluis Vich on June 14, 2020 at 3:28 pm

    hi!

    How it would look like to have access to the effects index on the same layer, to link some effects to the effect above?
    I have a drop shadow effect, and I’d like to duplicate it several times, and always have variatons from the Shadow Color on the effect above. Is that possible?

    Thanks!

    Juanluis Vich replied 5 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 14, 2020 at 6:07 pm

    You could try this:


    p = thisProperty;
    idx = p.propertyIndex;
    effectIdx = p.propertyGroup(1).propertyIndex;
    if (effectIdx != 1)
    p.propertyGroup(2)(effectIdx-1)(idx).value
    else
    value

    If the effect above could possibly be a different effect, you may want to add some defensive code to avoid an expression error (or unexpected result) in that case.

    Dan

  • Juanluis Vich

    June 15, 2020 at 7:02 am

    Awesome, thank you!

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