Forum Replies Created

  • Joel Daniels

    September 19, 2023 at 11:47 am in reply to: valueAtTime() not working in nested comp

    Ahhhh, thank you so much. I wasn’t aware that toComp() took another argument! That’s the ticket, it works perfectly.

  • Hi Adam – well 40 and 75 don’t really relate to each other, that’s the point. I gave an arbitrary example, but I ran into a situation the other day where I was trying to rig up some automated movement so I didn’t have to keep animating something meticulously.

    I had the object position keyframed, and was controlling the movement between the keyframes with eg. “valueAtTime(slider)”. I had an animated slider controlling various things, and I wanted an object to move a specific amount when the slider was at 75. Then when the slider animated the rest of the way, the object needed to move the rest of its distance.

    Edit: Well, I guess some conditional statements seem to work ok.

    s = thisComp.layer("Slider Control").effect("Slider Control")("Slider");
    if (s <= 75) {
    x = linear(s, 0, 75, 0, 40);
    }
    else {
    x = linear(s, 75, 100, 40, 100);
    }
    y = value[1];
    [x, y]
  • Hi Tomas, I’m not familiar with this; can you elaborate?

  • Joel Daniels

    July 14, 2016 at 8:25 pm in reply to: Issue with prompt() in script

    Ugh, yeah, there sure was. I’m such a dummy. I’m running AE CC 2015.3, and I was accidentally saving and loading the script in the residual After Effects 2015 folder instead of the new 2015.3 folder. Jeez. Gotta reduce some clutter here.

    Please disregard.

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