Rigging a cube \\ Help with bones

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
neonugget
Posts: 4
Joined: Wed Feb 04, 2026 8:17 am

Rigging a cube \\ Help with bones

Post by neonugget »

Hello Moho wizards, I'm here to ask for your advice.

I'm rigging a cube that can be rotated in perspective both horizonatally and vertically. I have figured that the most sane solution would be to basically only rig the front edge (consult attached image). The closer the front edge is to the side edges, the smaller the side edge becomes and vice versa. Point is, I'm trying to add the main transform position bone and the front edge bone, but when I bind points to the pin bone I can no longer move it. How would one go around rigging this? Are the tutorials on a similiar system that I have going?

Thanks in advance!

Image
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

Pretty cool! You might also want to look into using a Perspective Warp as described here...

Perspective Warp and Quad warp

In a nutshell: a strictly 4-point quad mesh, aka Perspective Warp, will warp its interior using a true perspective grid.

Note that this differs from a Quad Warp, which does not apply perspective rules.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

As for rigging a cube, I'm the wrong person to ask because I would just animate the cube in a 3D program and be done with it. If I really needed it as a vector animation in Moho, I might bring the 3D render into Moho and trace it. (I've done something like this for other objects in the past.)

But some animators have rigged and animated cubes in Moho, notably after Perspective Warp was introduced. I'm pretty sure I've seen examples in the forum, but I can't find them (it's so hard to find anything using the Search bar.)

Hopefully, someone will post a link shortly.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

Here's an idea: I think the easiest way to do this in Moho is to create an unfolded box with each square in a separate layer. Optionally, you can add details or imagery to the squares. When you're ready, fold the shapes in 3D space into a Box. Done.

It's not the same as warping polygons in 2D space, but it could be more effective depending on the usage.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

Here's a very sloppy example.

First I made the unfolded box...
Image

I originally placed the back side of the box on one of the ends, but then realized it would be easier to keep it in the center and push it back along the z-axis.

Here's the folded version...
Image

There are a couple of things to consider:
1. Depth Sorting>Sort By True Depth should be enabled.
2. The boxes probably shouldn't touch each other. When I turn the box, the render gets a little unpredictable, and I think this is because the slightest shape overlapping is confusing Moho's depth sorting.

I don't have time to test this further, but maybe someone else will want to play with this idea.

If anything, this can be used as a reference for tracing an animated 2D vector cube.

Another approach is to extrude a square into a 3D cube from the Layer Properties window. However, I've never had much luck with this.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

Oh, and don't forget that Moho has a Perspective Points tool. In a true 2D approach, this tool can be used to deform a front-facing square into a side square.

So many ways... :D
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

I can't put any more time into this, but if I had to rig the above as flat 2D vector art. I'd use Point Bones on each corner. Then, I'd use Animated Layer Order to move the back layers forward as the cube turned.

If the above doesn't help, can you upload a project? As mentioned, I need to get to work now, but maybe another user here can take a look at it.

Good luck!
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
User avatar
neonugget
Posts: 4
Joined: Wed Feb 04, 2026 8:17 am

Re: Rigging a cube \\ Help with bones

Post by neonugget »

Greenlaw wrote: Thu Feb 05, 2026 8:58 am I can't put any more time into this, but if I had to rig the above as flat 2D vector art. I'd use Point Bones on each corner. Then, I'd use Animated Layer Order to move the back layers forward as the cube turned.

If the above doesn't help, can you upload a project? As mentioned, I need to get to work now, but maybe another user here can take a look at it.

Good luck!
Big thanks for looking into this, I didn't know about the Quad warp!

My main issue isn't even the logistics of the rig, but the technical side. I think the method I got should hypothetically work, it's just I can't figure out why the bones don't work the way they should, even though it's not even that difficult of a rig :cry:
If anyone has the time and dedication to look into it, here's the project file

https://drive.google.com/file/d/1YBkEdP ... sp=sharing
User avatar
neonugget
Posts: 4
Joined: Wed Feb 04, 2026 8:17 am

Re: Rigging a cube \\ Help with bones

Post by neonugget »

Big thanks for looking into this, I didn't know about the Quad warp!

My main issue isn't even the logistics of the rig, but the technical side. I think the method I got should hypothetically work, it's just I can't figure out why the bones don't work the way they should, even though it's not even that difficult of a rig :cry:
If anyone has the time and dedication to look into it, here's the project file

https://drive.google.com/file/d/1YBkEdP ... sp=sharing
I also realized that the rig doesn't work specifically when i have the pin bone parented to the root bone, but I don't have any idea how to fix this :\
User avatar
hayasidist
Posts: 3959
Joined: Wed Feb 16, 2011 11:12 am
Location: Kent, England

Re: Rigging a cube \\ Help with bones

Post by hayasidist »

this from moho 13.5 (5 years ago)
User avatar
synthsin75
Posts: 10420
Joined: Mon Jan 14, 2008 2:20 pm
Location: Oklahoma
Contact:

Re: Rigging a cube \\ Help with bones

Post by synthsin75 »

Your file works here. Are you trying it on a frame other than frame zero?
User avatar
neonugget
Posts: 4
Joined: Wed Feb 04, 2026 8:17 am

Re: Rigging a cube \\ Help with bones

Post by neonugget »

synthsin75 wrote: Thu Feb 05, 2026 10:28 am Your file works here. Are you trying it on a frame other than frame zero?
I checked the file again and the pin bone can't move if I parent it to the root bone both on frame zero and outside of it
User avatar
synthsin75
Posts: 10420
Joined: Mon Jan 14, 2008 2:20 pm
Location: Oklahoma
Contact:

Re: Rigging a cube \\ Help with bones

Post by synthsin75 »

neonugget wrote: Thu Feb 05, 2026 11:42 am
synthsin75 wrote: Thu Feb 05, 2026 10:28 am Your file works here. Are you trying it on a frame other than frame zero?
I checked the file again and the pin bone can't move if I parent it to the root bone both on frame zero and outside of it
Have you tried with the transform bone tool? It won't work using the manipulate bone tool.
User avatar
Greenlaw
Posts: 10768
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Rigging a cube \\ Help with bones

Post by Greenlaw »

hayasidist wrote: Thu Feb 05, 2026 10:26 am this from moho 13.5 (5 years ago)
There we go! Thanks, Paul. :D
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!

D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
Post Reply