Forum Replies Created

Page 1038 of 1081
  • 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

  • Dan Ebberts

    January 24, 2006 at 8:28 pm in reply to: What’s wrong with this expression?

    Try putting the index last, like this:

    [thisComp.layer(“Null 1”).position.valueAtTime(time-1)[0],thisComp.layer(“Null 1”).position.valueAtTime(time-2)[1],thisComp.layer(“Null 1”).position.valueAtTime(time-3)[2]]

    I didn’t try it, but I think that’s right.

    Dan

  • Dan Ebberts

    January 24, 2006 at 8:28 pm in reply to: What’s wrong with this expression?

    Try putting the index last, like this:

    [thisComp.layer(“Null 1”).position.valueAtTime(time-1)[0],thisComp.layer(“Null 1”).position.valueAtTime(time-2)[1],thisComp.layer(“Null 1”).position.valueAtTime(time-3)[2]]

    I didn’t try it, but I think that’s right.

    Dan

  • Dan Ebberts

    January 24, 2006 at 8:25 pm in reply to: expressions help!

    Try this:

    gap = 10;
    myIdx = Math.floor(index/2);
    myGap = myIdx*gap;
    leaderZ = thisComp.layer(1).position[2];
    delta = position[2] – leaderZ;
    if (delta > myGap){
    [value[0],value[1],leaderZ + myGap]
    }else{
    value;
    }

    It assumes that the center layer is Layer 1, the layers on each side of that are Layer 2 and Layer 3 and so on.

    Dan

  • Dan Ebberts

    January 24, 2006 at 8:25 pm in reply to: expressions help!

    Try this:

    gap = 10;
    myIdx = Math.floor(index/2);
    myGap = myIdx*gap;
    leaderZ = thisComp.layer(1).position[2];
    delta = position[2] – leaderZ;
    if (delta > myGap){
    [value[0],value[1],leaderZ + myGap]
    }else{
    value;
    }

    It assumes that the center layer is Layer 1, the layers on each side of that are Layer 2 and Layer 3 and so on.

    Dan

  • Dan Ebberts

    January 24, 2006 at 7:28 pm in reply to: expressions help!

    Once the middle can gets ahead of the second can by 10, does the second can retain its relative distance of 10 from the middle can?

    Dan

  • Dan Ebberts

    January 24, 2006 at 7:28 pm in reply to: expressions help!

    Once the middle can gets ahead of the second can by 10, does the second can retain its relative distance of 10 from the middle can?

    Dan

  • Dan Ebberts

    January 18, 2006 at 3:54 am in reply to: AE 7.0 Expressions, new features ?

    Nope, sorry.

    Dan

  • Dan Ebberts

    January 18, 2006 at 3:54 am in reply to: AE 7.0 Expressions, new features ?

    Nope, sorry.

    Dan

  • Dan Ebberts

    January 17, 2006 at 7:28 pm in reply to: Help with random image dissolves.

    It would be a bit of work, but you could do it with a script. If it were me, I’d have the script build a separate comp for each location in the grid and randomly populate the sequence.

    Dan

Page 1038 of 1081

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