ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Need to mix a linear expression with a time offset from another comp expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Cabestany
Need to mix a linear expression with a time offset from another comp expression
on Feb 17, 2017 at 3:24:29 am

Could anyone help me combine this two expressions together?

Basically I need a linear expression to occur based on the keyframes from another comp. However the inside comp it's a seamless particle loop, so while it's ten second long, the in point in the outer comp is at the 5 second mark.

Does this make sense?

Thanks everyone.
D.

C = comp("poster-el protector COMPED");

L = C.layer("poster-el protectorAE2");
ctrl = C.layer("poster-el protectorAE2").effect("FL Out Of Focus")("radius");

k1=C.layer("poster-el protectorAE2").effect("FL Out Of Focus")("radius").key(1).value;
k2=C.layer("poster-el protectorAE2").effect("FL Out Of Focus")("radius").key(2).value;



ctrl.valueAtTime(time+L.startTime)
linear(ctrl,k1,k2,k2,k1);


Return to posts index

David Cabestany
Re: Need to mix a linear expression with a time offset from another comp expression
on Feb 17, 2017 at 4:02:01 am

Got it, in case anyone needs it:

C = comp("poster-el protector COMPED");
ctrl = comp("poster-el protector COMPED").layer("poster-el protectorAE2").effect("FL Out Of Focus")("radius");
L = C.layer(thisComp.name);
x=ctrl.valueAtTime(time+L.startTime);
linear(x,0,63.5,650,0)


Return to posts index

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