Forum Replies Created

Page 994 of 1081
  • Dan Ebberts

    December 1, 2006 at 5:29 pm in reply to: Transform a 3D Motion Path?

    Try this position expression:

    upperRight = [thisComp.width, 0 ,0];
    lowerLeft = [0, thisComp.height, 0];
    v = lowerLeft – (value – upperRight);
    [v[0], v[1], value[2]]

    Dan

  • Dan Ebberts

    November 30, 2006 at 7:16 pm in reply to: Am I doing this right?

    This should work:

    v = effect(“Particle Playground”)(“Position”).velocity;
    a = radiansToDegrees(Math.atan2(v[1],v[0]));

    Dan

  • Dan Ebberts

    November 30, 2006 at 7:16 pm in reply to: Am I doing this right?

    This should work:

    v = effect(“Particle Playground”)(“Position”).velocity;
    a = radiansToDegrees(Math.atan2(v[1],v[0]));

    Dan

  • Dan Ebberts

    November 30, 2006 at 4:49 am in reply to: more expression begging

    As far as I know, there’s no way for an expression to access the parent comp of the comp it resides in, except directly by name.

    Dan

  • Dan Ebberts

    November 30, 2006 at 4:49 am in reply to: more expression begging

    As far as I know, there’s no way for an expression to access the parent comp of the comp it resides in, except directly by name.

    Dan

  • Dan Ebberts

    November 29, 2006 at 10:47 pm in reply to: Roving objects position?

    Mike, this should fix it. Just set “layersToSkip” the number of layers not participating in the chain and make sure those layers are at the bottom of the layer stack.

    layersToSkip = 2;

    if (thisComp.numLayers > 1 + layersToSkip){
    P1 = thisComp.layer(1).position;
    P2 = thisComp.layer(thisComp.numLayers – layersToSkip).position;
    P1 + (P2 – P1) * (index – 1) / (thisComp.numLayers – 1 – layersToSkip)
    }else{
    value
    }

    Dan

  • Dan Ebberts

    November 29, 2006 at 10:47 pm in reply to: Roving objects position?

    Mike, this should fix it. Just set “layersToSkip” the number of layers not participating in the chain and make sure those layers are at the bottom of the layer stack.

    layersToSkip = 2;

    if (thisComp.numLayers > 1 + layersToSkip){
    P1 = thisComp.layer(1).position;
    P2 = thisComp.layer(thisComp.numLayers – layersToSkip).position;
    P1 + (P2 – P1) * (index – 1) / (thisComp.numLayers – 1 – layersToSkip)
    }else{
    value
    }

    Dan

  • Dan Ebberts

    November 29, 2006 at 6:12 pm in reply to: Roving objects position?

    If you have a bunch of layers, you could apply this expression to all the layers, then just drag the first one or last one around and the others should spread out in between:

    if (thisComp.numLayers > 1){
    P1 = thisComp.layer(1).position;
    P2 = thisComp.layer(thisComp.numLayers).position;
    P1 + (P2 – P1) * (index – 1) / (thisComp.numLayers – 1)
    }else{
    value
    }

    Dan

  • Dan Ebberts

    November 29, 2006 at 6:12 pm in reply to: Roving objects position?

    If you have a bunch of layers, you could apply this expression to all the layers, then just drag the first one or last one around and the others should spread out in between:

    if (thisComp.numLayers > 1){
    P1 = thisComp.layer(1).position;
    P2 = thisComp.layer(thisComp.numLayers).position;
    P1 + (P2 – P1) * (index – 1) / (thisComp.numLayers – 1)
    }else{
    value
    }

    Dan

  • Dan Ebberts

    November 29, 2006 at 5:55 pm in reply to: Roving objects position?

    If “Layer A” and “Layer D” are the end points, one in-between layer could have a Position expression like this:

    A = thisComp.layer(“Layer A”).position;
    D = thisComp.layer(“Layer D”).position;
    A + (D – A)/3;

    And the other one like this:

    A = thisComp.layer(“Layer A”).position;
    D = thisComp.layer(“Layer D”).position;
    A + (D – A)*2/3;

    There are ways to automate it based on layer index if you have a bunch of layers, but this should get you started.

    Dan

Page 994 of 1081

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