Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Copy effect values from another layer through Layer Control

  • Copy effect values from another layer through Layer Control

    Posted by Ahad Elshabeb on September 11, 2020 at 12:04 am

    Hi

    Is it possible to access the values of an effect on another layer through a layer control.

    An example would be. Layer 1 and Layer 2 have “Fill” effect.

    I want the Fill color of Layer 1 to take the Fill value of Layer 2 ( any layer with Fill effect that is selected through the layer control)

     

    This line doesn’t work :

    effect(“Layer To Align To”)(“Layer”).effect(“Fill”)(Color)

     

    It works with layer properties like

    effect(“Layer To Align To”)(“Layer”).position

     

    Is it a limitation of Layer control or I typed it wrongly ?

    Ahad Elshabeb replied 5 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Chris Voelz

    September 15, 2020 at 4:27 pm

    This worked fine for me.

    Applied Layer Controller to Layer 1, and set it to Layer 2
    Applied Fill Effect to Layer 1
    Applied this expression on the Fill Color of Layer 1, effect(“Layer Control”)(“Layer”).effect(“Fill”)(“Color”)

  • Ahad Elshabeb

    January 13, 2021 at 4:17 pm

    Thanks Chris. True it works fine the way it is.

    I discovered a space in my code. After 2 weeks of going crazy I noticed the typo !

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