Forum Replies Created

  • Brian Swarthout

    June 28, 2018 at 4:45 am in reply to: Trigger linear Interpolation

    Makes sense. Can’t thank you enough for your help!

  • Brian Swarthout

    June 26, 2018 at 5:18 am in reply to: Trigger linear Interpolation

    Thanks for the quick response! I’m aware of using [1] to reference the second value in an array but was unsure why it must be specified following the valueAtTime function rather than in the variable itself. See below for the expression that is not working. Is it due to how valueAtTime works?


    t = inPoint;
    p = transform.position[1];
    v = 100;
    while (t < time){
    if (p.valueAtTime(t) > 1000){
    v = linear(time - t,0,2,100,0);
    break;
    }
    t += thisComp.frameDuration;
    }
    v

  • Brian Swarthout

    June 23, 2018 at 12:13 am in reply to: Trigger linear Interpolation

    Hello!

    Dan, This worked. Thank you so much.

    This will prove incredibly useful and I’m excited to pick it apart to understand it’s mechanics.

    One question I have is… Why must the [1] be input after p.valueAtTime(t) rather than just in the “p” variable itself?

    Thanks so much!

  • Brian Swarthout

    June 22, 2018 at 1:13 am in reply to: Trigger linear Interpolation

    Hi Alex,

    Thanks for the information. I was afraid this was going to be the case. I’ll try my best at picking apart Dan’s triggering expression to see if I can make it work for my purposes.

    Does the fact that the position of the layer will be driven by the position of a null change anything or will the expression still need to top a recursive search?

    Thanks again,

    – Brian

  • Brian Swarthout

    December 1, 2017 at 3:28 am in reply to: if/else as variable

    Thank you!

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