Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions creating a CUBE in AE

  • creating a CUBE in AE

    Posted by Tzur Livne on November 21, 2010 at 11:18 am

    hi
    i want to make a cube in AE from 6 solids. i can do it manually, but i want a perfect cube – the edges will “connect” with no gaps or overlaps.
    is there any expression that can utilize the solid size and reposition the other 5 solids accordingly so there is a perfect connection ?
    thanks,
    tzur.

    Tzur Livne

    Chris Wright replied 15 years, 9 months ago 4 Members · 3 Replies
  • 3 Replies
  • John Toi

    November 21, 2010 at 1:48 pm

    Step 1
    Create a square, (eg. 50*50)then make it 3d, offsetting the z anchor point by half the cube size (eg, 25)then duplicate it 5 times

    Step 2
    For the first,leave it as it is
    For the second, change the x orientation to 90
    For the third, change the x orientation to 270
    For the fourth, change the y orientation to 90
    For the fifth, change the y orientation to 270
    For the sixth, change the y orientation to 180

    Step 2 .Alt
    After step 1, make sure the 6 copies are on the top of the timeline, or simply precompose them. Then add the code to the orientation (havent tested the code, hope it works =P)

    if(index = 1)
    value + [0,90,0];
    else if(index = 2)
    value + [0,270,0]
    ;
    else if(index = 3)
    value + [90,0,0]
    ;
    else if(index = 4)
    value + [270,0,0];

    ;
    else if(index = 5)
    value + [0,180,0]
    ;
    else if(index = 6)
    value
    ;
    else value;

  • Dan Ebberts

    November 21, 2010 at 8:59 pm
  • Chris Wright

    November 22, 2010 at 6:22 am

    oh yea, aescripts has a ton of auto 3d shape makers for everything from tetrahedrons to cubes. really, really nice stuff there.

    https://technicolorsoftware.hostzi.com/

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