ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

layer marker opacity matches scale expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dustin Nguyen
layer marker opacity matches scale expression
on Feb 20, 2018 at 2:26:42 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 &lt; fadeTime + holdTime){
s = linear(t,0,fadeTime,80,100);
}else{
s = linear(t,fadeTime+holdTime,fadeTime*2+holdTime,100,80);
}
}
[s,s]


Return to posts index

Dan Ebberts
Re: layer marker opacity matches scale expression
on Feb 20, 2018 at 4:43:00 pm

Try changing the last line from this:

[s,s]

to this:

s


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]