Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3D rotation – Cube

  • 3D rotation – Cube

    Posted by Tim Hodgkiss on May 13, 2008 at 8:41 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.

    Tim Hodgkiss replied 18 years ago 5 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    May 13, 2008 at 9:36 pm

    I’d put a null at the center and make it the parent of the sides. Then just rotate the null.

    Dan

  • Mike Clasby

    May 13, 2008 at 10:45 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.

    https://www.nabscripts.com/Downloads/downloads_en_1.php?id=7

    It can also create a cube with new solids.

    Lots of other cool scripts there too.

  • Darby Edelen

    May 13, 2008 at 11:26 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

  • Bert Brown

    May 14, 2008 at 4:06 pm

    holy crap, thanks for posting that link. you just made my job a million times more efficient. all these scripts are amazing.

    ———————————-

    peep my over-the-interweb band, red abbott.
    “we electro-rock over long distances…”

  • Tim Hodgkiss

    May 14, 2008 at 6:17 pm

    Success, and thanks to those that offered help. The first test of the results can be found here: https://www.youtube.com/watch?v=pk8Op43hTCI

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