Change layer display order

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DSisterson
Posts: 6
Joined: Thu Nov 24, 2022 5:28 pm

Change layer display order

Post by DSisterson »

I'm trying to find out how to change display orders so that, say, part of a character can appear in front of and then behind character or object, and to animate this. For instance, if dog walks behind a tree, then looks round the tree so that his body is still behind the tree but his head in front. How would you do this? All I can find is information on changing a display order of shapes within a single layer, or to move them back and forth within 3D space, neither of which is what I'm looking for. Can anyone help me with this? I can see how it could be done by having the dog and the tree as part of the same bone structure and animating the layers but not how to do it if they're separate objects. is that possible?
User avatar
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Change layer display order

Post by slowtiger »

Ah, standard problem.

Have dog on one layer, tree on another. Duplicte dog layer, put one in front of tree, one behind. Switch visibility of body parts where necessary.

To animate layer order, layers must be in a bone or group folder, in which "animated layer order" is checked.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
DSisterson
Posts: 6
Joined: Thu Nov 24, 2022 5:28 pm

Re: Change layer display order

Post by DSisterson »

Thanks Slowtiger - I can work with that I suppose. I'm accustomed to CelAction which is very good for being able to change display orders on a frame by frame basis so I thought I might be missing something obvious here. It feels like a serious limitation though.
I guess another solution is to build both the tree and the dog into a single bone group, but that would preclude saving them as separate Moho objects to use in different projects or scenes...unless there's a way to merge two bone groups into a single bone group-? I haven't been able to find it if so.
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Change layer display order

Post by Greenlaw »

It varies by the situation but for your dog and tree example, I'd probably make a reference copy of the character so I can place the character both behind and in front of the tree, and then use a mask layer for the overlapping part of the dog.

Tip: when working with references, be sure to animate the original and not the reference to keep the animation in sync. If you happen to break this, you can resync the layers, but you might lose some animation. To make the distinction clearer to me, I like to add REF- to the Reference layer's name, and maybe I'll color the layer red. (Alternatively, use Synthsin75's Lock Layer tool to prevent accidental edting.)

In other 'overlap' situations, I may bring the mid-ground object inside the character's group and simply place it at the appropriate level within the charcter's stacking order.

I can think of other methods but, as mentioned, the method I use depends on the situation.
User avatar
DSisterson
Posts: 6
Joined: Thu Nov 24, 2022 5:28 pm

Re: Change layer display order

Post by DSisterson »

Thanks Greenlaw. I'm quite new to Moho and haven't used reference layers, but I'll look into that. It all feels like a lot of 'workarounds' for what must be a common issue; I expect there's some coding reason that makes it a hard nut to crack.
UPDATE: I've just had a play with that and it works very nicely, thanks again.
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Change layer display order

Post by Greenlaw »

DSisterson wrote: Fri Feb 16, 2024 5:33 pm It all feels like a lot of 'workarounds' for what must be a common issue; I expect there's some coding reason that makes it a hard nut to crack.
Sometimes I feel like everything I animate in any animation program requires a 'workaround'. :D

In Moho, it's really not bad once you get familiar with the available options. Like anything, it takes practice.

Good luck and happy animating!
User avatar
DSisterson
Posts: 6
Joined: Thu Nov 24, 2022 5:28 pm

Re: Change layer display order

Post by DSisterson »

Thanks G - it took me years to get round to it but I'm loving it.
Post Reply