Page 1 of 1
Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 8:27 am
by Daxel
Sometimes I feel like my life would be easier if I could just prevent a layer from being moved by its parents (or the bone they are vinculated to).
This happens when I need to put one drawing (for example: a lollipop) inside one group layer (for example: the mouth group) for masking purposes (the lips of the tongue being animated above or bellow the lollipop) but I'm not really interested in moving the lollipop layer when I, for example, move the mouth group with the Transform Layer tool or even the head bone that moves the mouth group. So I would love if I could have a way to tell moho: prevent this layer from being moved by it's parents.
Is there a way to achieve this? Maybe a script?
Re: Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 8:33 am
by slowtiger
Usually I create one separate root bone for this purpose to which I layer bind that item. Additionally I could set this bone's restraints to 0 so it can't be moved accidentially.
Re: Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 9:28 am
by Daxel
slowtiger wrote: ↑Sun Feb 23, 2020 8:33 am
Usually I create one separate root bone for this purpose to which I layer bind that item. Additionally I could set this bone's restraints to 0 so it can't be moved accidentially.
I'm not sure if I understand. I tried that but didn't prevent the lollipop from being moved when I moved (with the transform layer tool) the mouth_group it was in.
Maybe I'm not explaining it well, english is not my fist language. When I move one group layer with Transform Layer tool, the layers inside that group move as well, and I just want one of those layers inside the group to not move when I move the group.
Re: Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 9:35 am
by slowtiger
Ah, I didn't get the setup right.
So you have a bone rig, inside is a mouth group, inside this mouth group is the lollipop layer. You want the lollipop remain in place when the mouth group/its bone gets moved.
Create the root bone I mentioned in the same bone rig that controls the mouth group.
(Usually I'd expect the lollipop bound to some hand bone.)
Re: Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 10:21 am
by Daxel
slowtiger wrote: ↑Sun Feb 23, 2020 9:35 am
Ah, I didn't get the setup right.
So you have a bone rig, inside is a mouth group, inside this mouth group is the lollipop layer. You want the lollipop remain in place when the mouth group/its bone gets moved.
Create the root bone I mentioned in the same bone rig that controls the mouth group.
(Usually I'd expect the lollipop bound to some hand bone.)
Thanks, now I understand. It works with bone animation but it doesn't prevent the lolipop layer from being moved if I move the mouth layer or the bone layer with transform layer tool.
Re: Prevent a layer from being moved by the group it's in
Posted: Sun Feb 23, 2020 10:47 am
by slowtiger
Yes of course - it can only compensate for bone movements.
It's a good habit to only do bone movements once a layer is bound.