Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to Link RGB Fill to layer #

  • Expression to Link RGB Fill to layer #

    Posted by James Curran on October 9, 2008 at 4:19 pm

    Hi,

    I want to render off an image sequence with an alpha channel of an animated reveal (eg. a simple wipe across the screen, from completely transparent to fully opaque).

    I then want to import this sequence into a new comp, with each image in the sequence layered over each other.

    Then, I want to apply a fill effect to each layer and link the rgb value to the layer number in the comp. i.e. layer #1 will be rgb 1 1 1, layer #255 will be rgb 255 255 255 etc…

    Is there an expression that will allow me to do this easily?

    Thanks!

    Dan Ebberts replied 17 years, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Eric Sanderson

    October 9, 2008 at 5:53 pm

    seems like you wouldnt need 255 layers and expressions to do this, why cant you just animate a change to color from black to white over 255 frames?

  • Dan Ebberts

    October 9, 2008 at 7:35 pm

    Like this:

    myVal = index/255;
    [myVal,myVal,myVal,1]

    Dan

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