Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions layer marker opacity matches scale expression

  • layer marker opacity matches scale expression

    Posted by Dustin Mans on February 20, 2018 at 2:26 pm

    How can I get my opacity to match this scale expression below? ????

    Source: https://forums.creativecow.net/thread/227/36411#37430

    holdTime = 2.5;
    fadeTime = 1.2;

    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time) n--;
    }
    if (n == 0){
    s = 80;
    }else{
    t = time - marker.key(n).time;
    if (t < fadeTime + holdTime){
    s = linear(t,0,fadeTime,80,100);
    }else{
    s = linear(t,fadeTime+holdTime,fadeTime*2+holdTime,100,80);
    }
    }
    [s,s]

    Dan Ebberts replied 8 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    February 20, 2018 at 4:43 pm

    Try changing the last line from this:

    [s,s]

    to this:

    s

    Dan

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