Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects convert 1-point camera to 2-point camera with expressions?

  • convert 1-point camera to 2-point camera with expressions?

    Posted by Pshpsh on February 23, 2006 at 9:56 pm

    Does anyone know an expression that can convert a 1 point camera (no auto-orientation) to a 2-point camera (auto-orientation on) with Point of Interest? Basically, I want to know how to convert xyz rotation values to POI/orientation values.

    Pshpsh replied 20 years, 2 months ago 2 Members · 6 Replies
  • 6 Replies
  • Ryan Hill

    February 24, 2006 at 4:04 pm

    Trigonometry. I believe there are sin cos and tan functions available.

    This covers some related subject matters:
    https://www.creativecow.net/show.php?page=/articles/ebberts_dan/particle_gen/index.html

  • Pshpsh

    February 24, 2006 at 4:49 pm

    If anyone knows specifically what I need to use. If I tried to figure it out, it would be pure guesswork. This stuff boggles my mind, seriously. I know Dan can do this in his sleep…

  • Ryan Hill

    March 1, 2006 at 10:09 pm

    You know the X, Y, and Z location of the camera, and the angles it’s pointing. You want to calculate the location of the point of interest.

    Just to get one thing out of the way; there is no one single answer as to where the point of interest will be. It can be anywhere along a line pointing away from the camera. So, you’re going to have to assign a distance arbitrarily, to get a single point.

    What exactly do you plan to do with this point once you have it?

  • Pshpsh

    March 1, 2006 at 11:14 pm

    Well, the plan was to export that keyframe data and import it into Cinema4d. So then I could create a 3d object and export it back to AE. The XYZ rotation keyframes weren’t translating very well into C4d, but POI cameras were.
    I’m trying out some different solutions now. I’ve talked to a few people about this and it seems pretty hard to do in AE. Thanks for your help though.

  • Ryan Hill

    March 2, 2006 at 4:53 am

    So if the distance doesn’t much matter, then you can assume the hypoteneuse is 1, making the math a little simpler.

    Something like:

    [position[0]+Math.sin(rotationY),
    position[1]+Math.sin(rotationZ),
    position[2]+Math.sin(rotationX)]

    I might have X Y and Z backwards, but it makes sense to me. And you’ll want to pick-whip to get the real attributes of your camera.

    Also, you might be able to avoid expressions by parenting a null layer to the camera, with the anchor right on the camera, and the position right at where you want the point of interest. But I can’t test any of this right now, because I’m not at a computer that has AE.

  • Pshpsh

    March 4, 2006 at 12:45 am

    Thanks for responding RobotHero.

    That looks like it should technically work, but I haven’t got it to yet. I’ll keep trying…

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