Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to change color in layer order

  • how to change color in layer order

    Posted by Jose Arce on May 13, 2011 at 2:14 pm

    Hi, I need to make an animation of bunch of layer with the scale and diferent color to the first one to the last. Is one way I can do this with a expresion, I can control the layer scale with expresions, but I need change the color to the upper layers. I use the fill effect. but is a slow way. Can Color Ctrol do this in one simple way.

    Thanks.

    Jose Arce replied 15 years ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    May 13, 2011 at 2:28 pm

    I’m not sure I understand your question. A Color Control won’t actually change the color of anything unless you link an expression to it (the Color parameter of Fill, for example).

    You could set up an expression that changes a color parameter based on a layer’s index, but I’m not sure that’s what you’re asking. If so, a description of how you want the layer’s order in the layer stack to affect the color would be helpful.

    Dan

  • Jose Arce

    May 13, 2011 at 2:44 pm

    Hi Mr. Dan.
    That’s it. I need to change the color of the layer base in the index. For explample. I have the first layer blue, and the second more dark, try to make a kind of gradient base in the layer order.

    Hope you can help me.
    I use this expresion inthe scale to made te layer pop up in the compostion

    Delay=thisComp.layer(“borde”).effect(“Delay”)(“Slider”);
    thisComp.layer(index+1).transform.scale.valueAtTime(time-Delay)*.9;

    I saw this expression used in position.

    So, I want to do something like this on the layer’s color.

    Sorry English no is my mother lenguage.

  • Dan Ebberts

    May 13, 2011 at 3:26 pm

    You could use pretty much the same expression for Fill’s Color parameter:

    Delay=thisComp.layer(“borde”).effect(“Delay”)(“Slider”);
    thisComp.layer(index+1).effect(“Fill”)(“Color”).valueAtTime(time-Delay)*.9;

    Dan

  • Jose Arce

    May 13, 2011 at 4:01 pm

    Oh thank you, Mr. Ebberts.
    Work great.

    Kind Regrads

    Saludos desde Costa Rica.

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