1 Reply Latest reply on Dec 9, 2009 10:47 AM by Mylenium

    Expression help. Opacity using a null slider

    luadke Level 1

      Hi,

      I'm using the expression below on a few layers in order to achieve a 'rolodex' look. The expression was applied to the x axis of the layers.

       

      numCards=thisComp.layer("Null 1").effect("numCards")("Slider");

      viewCard=thisComp.layer("Null 1").effect("viewCard")("Slider");

       

      v=((index-1) * (360/numCards) + viewCard*(360/numCards))%360;

       

      if (v<10) {

      ease(v,0,10,-20,120);

      } else {

      linear(v,10,360,120,340);

      }

      I would like to make it so that I can control the opacity of the given layer so that lets say when the 'card' (layer) in question is at a certain point in its cylce the opacity will go from 0 to 100 and then fade back down to zero.
      This expression was taken from somewhere else, and I'm learning them (but slowly).
      Thanks a lot for your help!
      Luke