Rigging and Rolling a Cube in After Effects
How hard could it be to animate a cube rolling correctly in After Effects? The answer, as we found out, is very hard.
This tutorial starts out by showing you how to approach animating something like a cube once you have the rig in place, because honestly we're not sure you would want to attempt animating this without a rig. You could do it using a bunch of nulls or something, but that would be painful. So if animation is your thing just grab the rig and get crackin'!
But… if you are a budding expressionista, then maybe you want to know how Joey made the rig. In that case, watch the whole video and he'll explain the entire process, including how he first tried and failed to rig this bad boy. Check out the resources tab for all the expressions you'll need to re-create this cube rig on your own.
If you have any questions, click over to the Q&A tab to post them. Other students can answer you, and we'll put our team on the case to try and get you a solution ASAP.
Watch the tutorial for how this all wires together, but here are the expressions:
BAdjustY Null – Y Position:
// Get Box Dimension
// Get Box Null Y-Position
// Define Corners
// Convert to Comp Space
// Grab Y-Values
// Find the highest value (lowest position)
maxY = Math.max(tly, trighty);
maxY = Math.max(maxY, bly);
maxY = Math.max(maxY, bry);
BRotate Null – Z Rotation
I followed this tutorial to the letter and somehow my box is moving much higher along the Y postion than it needs to so the box appears to be bouncing. Has anyone else had a similar problem or know what I might be doing wrong? Thanks
Have you tried downloading the project files to check your expressions against the ones in the project? It could just be one tiny typo and it messes the whole thing up. Also, check out this tutorial which has another way to skin this problem: https://www.youtube.com/watch?v=sVg8jnajLSk
Hi, could you pls check that the project file opens on Mac? it doesn't seem to be a proper ZIP file... just a blank white sheet icon. This seems to be a reoccurring problem with most of the tutorial project files. Thanks!
Sorry to hear you're running into trouble with the project file. I just refreshed it and it should now download as ZIP. If you're still running in to trouble, please drop us a line at [email protected] and we can email you a copy directly.
My box is doing the opposite. When I just finish to write the BYAdjust expression. The box is going down when the corner touchs the floor. And going up when the box is straight. What is going wrong?
Hi. Please download the project files and compare the expression found there with the one you've created. There's likely one or two lines with subtle differences that are causing the issue.
I just wanted to drop by and mention that new website design - IS AWESOME. Super handy. All the sections separated and coherent. Very neat and smart. Sorry for spam.
Glad to hear you're enjoying the new site!