Forum Replies Created

Page 1037 of 1081
  • Dan Ebberts

    January 26, 2006 at 7:50 pm in reply to: Mask animation via expressions

    You’re correct – expressions can’t access mask vertices. You can do it with a script though.

    Dan

  • Dan Ebberts

    January 26, 2006 at 5:48 pm in reply to: Weird positioning problem…..

    The position of any layer that has a parent is no longer represented in world space, but relative to the parent’s upper left corner. If you want the world or comp equivalent, you need to use one of the layer space transforms. It would look like this:

    L = thisComp.layer(“Null 1”);
    P = L.toWorld(L.anchorPoint);

    or

    L = thisComp.layer(“Null 1”);
    P = L.toComp(L.anchorPoint);

    Dan

  • Dan Ebberts

    January 26, 2006 at 5:48 pm in reply to: Weird positioning problem…..

    The position of any layer that has a parent is no longer represented in world space, but relative to the parent’s upper left corner. If you want the world or comp equivalent, you need to use one of the layer space transforms. It would look like this:

    L = thisComp.layer(“Null 1”);
    P = L.toWorld(L.anchorPoint);

    or

    L = thisComp.layer(“Null 1”);
    P = L.toComp(L.anchorPoint);

    Dan

  • Dan Ebberts

    January 26, 2006 at 3:30 pm in reply to: jumping counter expression

    You’re not going to want to name a variable “startTime” because it’s already defined as the read-only start time of the layer. So you can’t change it. Not very useful as a variable. 🙂 (Learned the hard way – tough bug to find)

    Dan

  • Dan Ebberts

    January 26, 2006 at 3:30 pm in reply to: jumping counter expression

    You’re not going to want to name a variable “startTime” because it’s already defined as the read-only start time of the layer. So you can’t change it. Not very useful as a variable. 🙂 (Learned the hard way – tough bug to find)

    Dan

  • Dan Ebberts

    January 25, 2006 at 4:59 am in reply to: animating a train in AE

    The last three examples on the page that yikesmikes referenced keep the “cars” evenly spaced. No crashing. 🙂

    Dan

  • Dan Ebberts

    January 25, 2006 at 4:59 am in reply to: animating a train in AE

    The last three examples on the page that yikesmikes referenced keep the “cars” evenly spaced. No crashing. 🙂

    Dan

  • This should give you the position of the camera in world space:

    C = thisComp.layer(“Camera 1”);
    P = C.toWorld([0,0,0]);

    DAn

  • This should give you the position of the camera in world space:

    C = thisComp.layer(“Camera 1”);
    P = C.toWorld([0,0,0]);

    DAn

  • Dan Ebberts

    January 24, 2006 at 10:29 pm in reply to: Markers and expressions

    This assumes that your keyframed action occurs starting at time = 0. The animation will trigger at each marker:

    
    
    n = 0;
    if (marker.numKeys > 0){
      n = marker.nearestKey(time).index;
        if (marker.key(n).time > time){
          n--;
        }
    }
    
    if (n > 0) t = time - marker.key(n).time else t =0;
    
    valueAtTime(t);
    
    

    Dan

Page 1037 of 1081

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