Forum Replies Created

Page 1067 of 1081
  • Dan Ebberts

    July 21, 2005 at 9:13 pm in reply to: Need an expression to automate cards stacking up

    If you just want to subtract 1 from the layer’s z value you could do it like this:

    thisComp.layer(“Layer 1”).position – [0,0,1]

    The easiest way to express a value as the three individual coordinates would be to do something like this:

    p = thisComp.layer(“Layer 1”).position;
    [p[0],p[1],p[2]]

    It’s all just JavaScript array notation.

    Dan

  • Dan Ebberts

    July 21, 2005 at 9:13 pm in reply to: Need an expression to automate cards stacking up

    If you just want to subtract 1 from the layer’s z value you could do it like this:

    thisComp.layer(“Layer 1”).position – [0,0,1]

    The easiest way to express a value as the three individual coordinates would be to do something like this:

    p = thisComp.layer(“Layer 1”).position;
    [p[0],p[1],p[2]]

    It’s all just JavaScript array notation.

    Dan

  • Dan Ebberts

    July 21, 2005 at 5:26 pm in reply to: Need help remembering a shortcut

    Ctrl + Alt + R

    Dan

  • Dan Ebberts

    July 19, 2005 at 11:05 pm in reply to: Loopable Wiggle?

    This is kind of a hack, but it actually works quite well in most situations:

    freq = 1;
    amp = 100;

    end = thisComp.duration;
    delta = wiggle(freq,amp,1,0.5,0) – wiggle(freq,amp,1,0.5,end);
    wiggle(freq,amp) + delta*time/end

    Dan

  • Dan Ebberts

    July 19, 2005 at 11:05 pm in reply to: Loopable Wiggle?

    This is kind of a hack, but it actually works quite well in most situations:

    freq = 1;
    amp = 100;

    end = thisComp.duration;
    delta = wiggle(freq,amp,1,0.5,0) – wiggle(freq,amp,1,0.5,end);
    wiggle(freq,amp) + delta*time/end

    Dan

  • Dan Ebberts

    July 19, 2005 at 1:30 pm in reply to: how make object follow path

    It must be some mismatch in pixel aspect ratio between the comp and the layers. Does the path start out in the right place? What happens when you change the expression to this:

    percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
    valueAtTime(2*percent/100)/thisComp.pixelAspect

    What are the pixel aspect ratios of your layers?

    Dan

  • Dan Ebberts

    July 19, 2005 at 1:30 pm in reply to: how make object follow path

    It must be some mismatch in pixel aspect ratio between the comp and the layers. Does the path start out in the right place? What happens when you change the expression to this:

    percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
    valueAtTime(2*percent/100)/thisComp.pixelAspect

    What are the pixel aspect ratios of your layers?

    Dan

  • Dan Ebberts

    July 18, 2005 at 4:21 pm in reply to: how make object follow path

    Here’s one way. Let’s say your layer with the stroked path is called “Stroke Layer”. Copy the mask shape for the path and paste it into the position parameter of your follower layer. This should create keyframes that cause the follower to trace out the path over a 2-second period. Then just add this expression for position to sync it up with the animation of the “End” parameter of the stroke effect:

    percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
    valueAtTime(2*percent/100)

    Dan

  • Dan Ebberts

    July 18, 2005 at 4:21 pm in reply to: how make object follow path

    Here’s one way. Let’s say your layer with the stroked path is called “Stroke Layer”. Copy the mask shape for the path and paste it into the position parameter of your follower layer. This should create keyframes that cause the follower to trace out the path over a 2-second period. Then just add this expression for position to sync it up with the animation of the “End” parameter of the stroke effect:

    percent = thisComp.layer(“Stroke Layer”).effect(“Stroke”)(“End”);
    valueAtTime(2*percent/100)

    Dan

  • Dan Ebberts

    July 18, 2005 at 2:46 pm in reply to: yet another expression question, help please.

    If you calculate a new value for z you’d combine existing x and y with the new z this way:

    z = (whatever);
    [value[0],value[1],z]

    If you calculate a z offset, you’d add it in this way:

    z = (whatever);
    value + [0,0,z]

    Dan

Page 1067 of 1081

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