Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions where would I start with this expression?

  • where would I start with this expression?

    Posted by Jerry Fines on May 3, 2009 at 4:56 pm

    Hi all,

    I’m not too sure where to start with this one. Any help would be appreciated. I want to make a series of squares/pads (8 or so) that light up then slowly fade out over time. The pad would only light up based of a selector of some sort – but once the pad is not selected it would fade over time (I was thinking an expression slider, but my initial attempts with that don’t seem to work), so basically like a controllable light pad or something of the sort. In my initial attempts have failed unfortunately.

    Erin.

    Dan Ebberts replied 17 years ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 3, 2009 at 6:24 pm

    The expression is likely going to depend on what you use as a selector. What did you have in mind?

    Dan

  • Jerry Fines

    May 4, 2009 at 12:22 am

    I was thinking of using a slider, but that may not be the best solution. I saw you’re using markers to animate tutorial, do you think that solution could work?

  • Dan Ebberts

    May 4, 2009 at 1:20 pm

    Here’s you you could do it with a checkbox control:

    C = effect(“Checkbox Control”)(“Checkbox”);

    fadeIn = .2;
    fadeOut = 1.0;

    n = 0;
    if (C.numKeys > 0){
    n = C.nearestKey(time).index;
    if (C.key(n).time > time){
    n–;
    }
    }
    if (n > 0){
    t = time – C.key(n).time;
    if (C.key(n).value == 1){
    ease(t,0,fadeIn,0,100)
    }else{
    ease(t,0,fadeOut,100,0)
    }
    }else{
    0
    }

    Dan

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