Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expressions linking comps by name or index

  • expressions linking comps by name or index

    Posted by Tom Gomez on November 6, 2024 at 8:45 pm

    Okee dokee…

    SOLID_Goat is a comp with a bunch of layers in it (character positions)

    BEVEL_Goat is a comp with a bunch of layers in it (matching character positions)

    Both are in a comp called 12D_Goat.

    I need the opacity of the first layer in BEVEL_Goat to be mapped to the opacity of the first layer in SOLID_Goat. Opacity of second layer in BEVEL to be mapped to second layer in SOLID, etc.

    Right now we’re manually pick-whipping them. There are LOTS of character positions to it’s taking forever. comp(“SOLID_Goat”).layer(“FR_GoatShock”).transform.opacity

    Isn’t there just ONE expression that could be copied to ALL layers of BEVEL that would automatically map them to corresponding layers in SOLID?

    Thank you!!!!!
    <wbr>

    Brie Clayton
    replied 3 months, 1 week ago
    3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 6, 2024 at 8:54 pm

    If the layers are in the same layer order in their respective comps, you should be able to do something like this:

    comp("SOLID_Goat").layer(index).transform.opacity
  • Tom Gomez

    November 6, 2024 at 9:18 pm

    Works like a charm. THANK YOU!!!

  • Brie Clayton

    November 7, 2024 at 2:01 am

    Thanks for this solve, Dan!

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