Forum Replies Created

Page 1004 of 1081
  • Give this a try, it should be close:

    groupSize = 13;
    leaderIndex = Math.floor((index – 1)/groupSize)*groupSize + 1;
    d = delay*thisComp.frameDuration*(index – leaderIndex);
    p = thisComp.layer(leaderIndex).position.valueAtTime(time – d);
    [p[0],value[1]]

    Dan

  • Give this a try, it should be close:

    groupSize = 13;
    leaderIndex = Math.floor((index – 1)/groupSize)*groupSize + 1;
    d = delay*thisComp.frameDuration*(index – leaderIndex);
    p = thisComp.layer(leaderIndex).position.valueAtTime(time – d);
    [p[0],value[1]]

    Dan

  • Dan Ebberts

    September 18, 2006 at 10:20 pm in reply to: control the velocity with expressions

    OK – give this a try. “spd” sets how fast it tracks the null.

    spd = .05;

    level = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);

    accum = 0;
    f = Math.round(time/thisComp.frameDuration);
    for (i = 0; i <= f; i++){ t = i*thisComp.frameDuration; accum += level.valueAtTime(t); } thisComp.layer("Null 6").transform.position.valueAtTime(accum*spd); Dan

  • Dan Ebberts

    September 18, 2006 at 10:20 pm in reply to: control the velocity with expressions

    OK – give this a try. “spd” sets how fast it tracks the null.

    spd = .05;

    level = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);

    accum = 0;
    f = Math.round(time/thisComp.frameDuration);
    for (i = 0; i <= f; i++){ t = i*thisComp.frameDuration; accum += level.valueAtTime(t); } thisComp.layer("Null 6").transform.position.valueAtTime(accum*spd); Dan

  • Dan Ebberts

    September 18, 2006 at 5:26 pm in reply to: Follow the Leader Expression–Only on one axis

    This should do it:

    d = delay*thisComp.frameDuration*(index – 1);
    p = thisComp.layer(1).position.valueAtTime(time – d);
    [p[0],value[1]]

    Dan

  • Dan Ebberts

    September 18, 2006 at 5:26 pm in reply to: Follow the Leader Expression–Only on one axis

    This should do it:

    d = delay*thisComp.frameDuration*(index – 1);
    p = thisComp.layer(1).position.valueAtTime(time – d);
    [p[0],value[1]]

    Dan

  • Dan Ebberts

    September 18, 2006 at 5:23 pm in reply to: control the velocity with expressions

    It depends on exactly what you’re trying to do. If you have a keyframed movement and you want it to go twice as fast, for example, you could use an expression like this:

    valueAtTime(time*2)

    If you want to manipulate the velocity as the layer moves, that’s a different story and requires a more complicated expression.

    Another alternative is to turn on time remapping and apply an expression to that property.

    Like I said, it depends on what you’re trying to do. 🙂

    Dan

  • Dan Ebberts

    September 18, 2006 at 5:23 pm in reply to: control the velocity with expressions

    It depends on exactly what you’re trying to do. If you have a keyframed movement and you want it to go twice as fast, for example, you could use an expression like this:

    valueAtTime(time*2)

    If you want to manipulate the velocity as the layer moves, that’s a different story and requires a more complicated expression.

    Another alternative is to turn on time remapping and apply an expression to that property.

    Like I said, it depends on what you’re trying to do. 🙂

    Dan

  • Dan Ebberts

    September 17, 2006 at 8:06 pm in reply to: Mr. Dan Ebberts Expression for Blinking help

    You’re welcome, but easy on the “Mr.” 🙂

    Dan

  • Dan Ebberts

    September 17, 2006 at 8:06 pm in reply to: Mr. Dan Ebberts Expression for Blinking help

    You’re welcome, but easy on the “Mr.” 🙂

    Dan

Page 1004 of 1081

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