Forum Replies Created

Page 1066 of 1081
  • Dan Ebberts

    August 10, 2005 at 5:57 pm in reply to: Problem with my rod 🙁

    Without seeing what you’ve done, my guess would be that it’s a pixel aspect ratio thing (square pixel layers in a rectangular pixel comp?) If so, you’ll save yourself a lot of aggravation by working in a square pixel comp and fitting it inside your rectangular-pixel output comp when you’re done.

    Dan

  • Dan Ebberts

    August 3, 2005 at 10:14 pm in reply to: eliminate every third frame!

    This time-remapping expression should do it:

    f = thisComp.frameDuration;
    frames = Math.round(time/f);
    (Math.floor(frames/2)*3 + frames%2)*f

    Dan

  • Dan Ebberts

    August 3, 2005 at 10:14 pm in reply to: eliminate every third frame!

    This time-remapping expression should do it:

    f = thisComp.frameDuration;
    frames = Math.round(time/f);
    (Math.floor(frames/2)*3 + frames%2)*f

    Dan

  • Try this:

    linear(time,0,4,100,150)

    If you only want integers, it would be like this:

    Math.round(linear(time,0,4,100,150))

    Dan

  • Try this:

    linear(time,0,4,100,150)

    If you only want integers, it would be like this:

    Math.round(linear(time,0,4,100,150))

    Dan

  • Dan Ebberts

    July 26, 2005 at 6:39 pm in reply to: How do you “swap” a layer’s parent???

    I’d split the layer at the switch point and re-parent the second piece.

    Dan

  • Dan Ebberts

    July 22, 2005 at 9:48 pm in reply to: Expression Glitch with Auto-Orient?

    If you want the follower layers to have the same orientation as the leader layer, but time delayed, apply this expression the their rotation property (leave auto-orientation off for the followers):

    delay = 0.25;
    t = time – delay;
    L = this_comp.layer(“leader”);
    x = L.toWorldVec([1,0],t);
    radiansToDegrees(Math.atan2(x[1],x[0]));

    Dan

  • Dan Ebberts

    July 22, 2005 at 9:48 pm in reply to: Expression Glitch with Auto-Orient?

    If you want the follower layers to have the same orientation as the leader layer, but time delayed, apply this expression the their rotation property (leave auto-orientation off for the followers):

    delay = 0.25;
    t = time – delay;
    L = this_comp.layer(“leader”);
    x = L.toWorldVec([1,0],t);
    radiansToDegrees(Math.atan2(x[1],x[0]));

    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 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

Page 1066 of 1081

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