Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Need to mix a linear expression with a time offset from another comp expression

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

    Posted by David Cabestany on February 17, 2017 at 3:24 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);

    David Cabestany replied 9 years, 3 months ago 1 Member · 1 Reply
  • 1 Reply
  • David Cabestany

    February 17, 2017 at 4:02 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)

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