3D rotation - Cube
by Tim Hodgkiss
on
May 13, 2008 at 8:41:35 pm
I'm probably jumping in the deep end here...
I can do normal 3D rotation. My current problem is trying to create a cube. There are six comps, one of which is the 'master'. Using expressions I can get the x and y to match up for the side pieces, the x, y, and z to match up for the back, and the top and bottom are giving me issues.
Thus far my efforts work only for two of the rotations, but since I want this to be spinning freely (it's meant to be hovering and rotating in the final design), I could do with getting all three working.
All six sides are 500px * 500px, with their anchor points at 250, 250, 250, meaning that I can use this as a common centre for all of them.
I imagine that there is some trick to achieving this, but at the moment it's escaped me.
Re: 3D rotation - Cube by Mike Clasby on May 13, 2008 at 10:45:37 pm
The easiest way is to download the script, createCube, put the .jsx file in your AE script folder, then select the 6 sides, 6 layers in AE, and File>RunScript>Create Cube. Check the top box (it's French, yikes!), and it creates a cube from your layers (with expressions) with a null, so you can rotate that Null.
Re: 3D rotation - Cube by Darby Edelen on May 13, 2008 at 11:26:02 pm
If you pre-compose all of your layers arranged in a cube, collapse transformations on the pre-comp and enable its 3D switch then you don't even need to use a null. You can just rotate the pre-comp in 3D.
Darby Edelen Lead Designer Left Coast Digital Santa Cruz, CA