Forum Replies Created

Page 1030 of 1081
  • Dan Ebberts

    April 8, 2006 at 10:26 pm in reply to: follow the leader 2 (expression ques.)

    Which expression are you trying to use?

    You probaly just need to use a layer space transform to get the world postion of your parented layer with the appropriate time delay.

    Dan

  • Dan Ebberts

    April 8, 2006 at 12:44 am in reply to: Dan Ebberts Audio Sync

    It sounds like you haven’t added a marker to the layer with the time remapping expression. That’s how the expression knows what time in your time-remapped layer to sync to the markers in the other layer. It might be that you just need to add a marker at time = 0 on your time-remapped layer if you just want the layer to start playing from time 0 whenever there’s a marker on the other layer. Make sense?

    Dan

  • Dan Ebberts

    April 8, 2006 at 12:44 am in reply to: Dan Ebberts Audio Sync

    It sounds like you haven’t added a marker to the layer with the time remapping expression. That’s how the expression knows what time in your time-remapped layer to sync to the markers in the other layer. It might be that you just need to add a marker at time = 0 on your time-remapped layer if you just want the layer to start playing from time 0 whenever there’s a marker on the other layer. Make sense?

    Dan

  • Dan Ebberts

    April 7, 2006 at 4:26 pm in reply to: parenting position to scale

    Try adding this expression to each solid’s scale property:

    value*(100/thisComp.layer(“Null 1”).scale[0])

    Dan

  • Dan Ebberts

    April 7, 2006 at 4:26 pm in reply to: parenting position to scale

    Try adding this expression to each solid’s scale property:

    value*(100/thisComp.layer(“Null 1”).scale[0])

    Dan

  • Dan Ebberts

    April 5, 2006 at 1:27 pm in reply to: A directional wiggle

    I think you’re looking for something like thsi:

    w = wiggle(5,25) – value;
    value + [w[0],-w[0]]

    Dan

  • >Finally decided to start exploring the power of java,

    Actually, AE’s expression and scripting languages are based on JavaScript.

    >Everything after the “;” are just notes correct?

    Yes. Javascript considers everything on a line after “//” to be a comment.

    >(freq*time*2*math.pi) is calculated first, then multiplied by Sin, then -1, /2

    Actually, freq*time*2*math.pi becomes the argument to the Math.sin trig function. The range of that function is +1 to -1. So subtracting one makes the range 0 to -2. Then, dividing by two makes the range 0 to -1 (which is what the expression needs).

    Dan

  • >Finally decided to start exploring the power of java,

    Actually, AE’s expression and scripting languages are based on JavaScript.

    >Everything after the “;” are just notes correct?

    Yes. Javascript considers everything on a line after “//” to be a comment.

    >(freq*time*2*math.pi) is calculated first, then multiplied by Sin, then -1, /2

    Actually, freq*time*2*math.pi becomes the argument to the Math.sin trig function. The range of that function is +1 to -1. So subtracting one makes the range 0 to -2. Then, dividing by two makes the range 0 to -1 (which is what the expression needs).

    Dan

  • Dan Ebberts

    March 28, 2006 at 5:21 pm in reply to: how to do this ? epressions maybe?

    You can probably do it with a decaying cosine wave expression for y rotation. Something like this:

    period = 4; //length of one cycle
    revolutions = 3; // revolutions per cycle
    decay = 0.2;

    revolutions*360*Math.cos(time*2*Math.PI/period)/Math.exp(decay*time)

    Increase decay to have it slow down faster.

    Dan

  • Dan Ebberts

    March 28, 2006 at 5:21 pm in reply to: how to do this ? epressions maybe?

    You can probably do it with a decaying cosine wave expression for y rotation. Something like this:

    period = 4; //length of one cycle
    revolutions = 3; // revolutions per cycle
    decay = 0.2;

    revolutions*360*Math.cos(time*2*Math.PI/period)/Math.exp(decay*time)

    Increase decay to have it slow down faster.

    Dan

Page 1030 of 1081

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