Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions xyz coordinates

  • Posted by Hernan Torrisi on May 1, 2009 at 8:27 pm

    I hope this is the right place to post.
    I am making a papervision project and the space coordinates work differently than the after effects ones.
    I wrote a script to export all the camera and layer positions and rotations as an XML to import to flash.
    I got half way of solving this but i am stuck.

    – I created a null object to attach all the 3D layers so their coordinates are (0,0,0) at start.
    – I inverted the Y position on each layer with an expression, so positive values go up and not down.
    -The rotation is the problem. I can´t understand the logic of rotating the objects so they behave similarly in both cases. I tried with both orientation and rotation but i think they are the same.

    I could decide not to rotate the camera in all the axes but now I am intrigued on how to solve this.
    If anyone can help i really appreciate it.

    thanks!

    Filip Vandueren replied 17 years ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    May 6, 2009 at 11:37 am

    Hello Hernan,

    unfortunately the three rotations and orientation are not the same, and the reason why they’re not is pretty complex, it has to do with 4-dimensional rotations… gulp.

    There should be a way to figure out how your rotation values translate to after effects’ space though:

    Start out with three 3D nulls that you parent to each other in a chain.

    parent -> child -> grandchild

    Now try setting 1 rotation coördinate at a time. for example, x-rotation on the parent, y- on the first child, z, on the “grandchild”.

    You’ll find that different combinations, xyz, zyx, yzx etc. give different visual end results for the grandchild.
    So this way, you should be able to establish in which order the rotations in papervision are done, and come back with that information.

    Hopefully Dan will then be able to whip out some matrix-calculation that translates that into a single orientation value, although gain, it’s not trivial…

    Worst case, every layer gets a grandparent-chain, and you could write a script to do that.

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