Forum Replies Created

Page 1015 of 1081
  • Did you try Layer>Transform>Auto Orient>Orient Towards Camera?

    Dan

  • Dan Ebberts

    July 7, 2006 at 9:26 pm in reply to: placing many layers randomly in 3d space

    If you just want to randomly position them, a position expression like this should do it:

    minXYZ = [0,0,0];
    maxXYZ = [thisComp.width,thisComp.height,1000];
    seedRandom(index,true);
    random(minXYZ,maxXYZ);

    Adjust the min and max x, y, and z values in the first two parameters to set the bounds.

    Dan

  • Dan Ebberts

    July 7, 2006 at 9:26 pm in reply to: placing many layers randomly in 3d space

    If you just want to randomly position them, a position expression like this should do it:

    minXYZ = [0,0,0];
    maxXYZ = [thisComp.width,thisComp.height,1000];
    seedRandom(index,true);
    random(minXYZ,maxXYZ);

    Adjust the min and max x, y, and z values in the first two parameters to set the bounds.

    Dan

  • Dan Ebberts

    July 7, 2006 at 3:03 pm in reply to: Expression bounce help

    Yes, this would be for position property of a 3D layer. The bounce will be in the z direction. If you wanted it to bounce a 2D layer in the y direction, you would just change this:

    value+[0,0,y];

    to thie:

    value+[0,y];

    Hope that helps.

    Dan

  • Dan Ebberts

    July 7, 2006 at 3:03 pm in reply to: Expression bounce help

    Yes, this would be for position property of a 3D layer. The bounce will be in the z direction. If you wanted it to bounce a 2D layer in the y direction, you would just change this:

    value+[0,0,y];

    to thie:

    value+[0,y];

    Hope that helps.

    Dan

  • Dan Ebberts

    July 7, 2006 at 1:51 am in reply to: expression for 3D orientation

    >would this expression sum up all the rotations

    It seems to. Except possibly in a gimbal lock situation.

    >if so: brilliant stuff

    Thanks! 🙂

    >do you think it is feasible in Javascript to convert an After Effects style 3D Euler rotation to a VRML-style axis+angle rotation ?

    I’m not that familiar with VRML, but it seems like it should just be a matter of cooking up the right transform.

    Dan

  • Dan Ebberts

    July 7, 2006 at 1:51 am in reply to: expression for 3D orientation

    >would this expression sum up all the rotations

    It seems to. Except possibly in a gimbal lock situation.

    >if so: brilliant stuff

    Thanks! 🙂

    >do you think it is feasible in Javascript to convert an After Effects style 3D Euler rotation to a VRML-style axis+angle rotation ?

    I’m not that familiar with VRML, but it seems like it should just be a matter of cooking up the right transform.

    Dan

  • Dan Ebberts

    July 7, 2006 at 1:38 am in reply to: Expression bounce help

    Try this:

    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time){
    n–;
    }
    }
    if (n == 0){
    value
    }else{
    t = time – key(n).time;
    veloc = 18;
    amplitude = 60;
    decay = 6;
    y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
    value+[0,0,y];
    }

    Dan

  • Dan Ebberts

    July 7, 2006 at 1:38 am in reply to: Expression bounce help

    Try this:

    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time){
    n–;
    }
    }
    if (n == 0){
    value
    }else{
    t = time – key(n).time;
    veloc = 18;
    amplitude = 60;
    decay = 6;
    y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
    value+[0,0,y];
    }

    Dan

  • Dan Ebberts

    July 6, 2006 at 8:58 pm in reply to: seed random for randomness

    It would indeed be extremely useful if you could force random() to produce the same random sequence in different layers and properties. I think seedRandom needs a third parameter – global = true, but alas, as you discovered, it doesn’t exist.

    Dan

Page 1015 of 1081

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