Leg doesn't stick to the bone

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Leg doesn't stick to the bone

Post by kamiledi15 »

Hello,
I'm making a human character. One leg sticks perfectly to the bone, but the other one - doesn't want to. When it's straight down it's ok, but when I start to move the bone it messes up. Here you can see what I'm talking about:
https://www.youtube.com/watch?v=icBvpkN ... e=youtu.be
I made both legs in the same way, so I don't know why first works great and second doesn't?
User avatar
alanthebox
Posts: 216
Joined: Sat Feb 03, 2018 5:31 pm
Contact:

Re: Leg doesn't stick to the bone

Post by alanthebox »

at first glance, it kind of looks like that lower leg might have a different z depth. you can verify this by selecting the offending layer, then the layer transform tool. it should give readouts for x, y, and z.
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

You can also see it in orbit view, if you're using Pro.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

It seems that it's not the reason, I used orbit view and all layers are in the same position. Any other ideas?
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

Without seeing the file, a different z-depth is the only obvious culprit...unless you have smart bone actions.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

Ok, I can upload the file. But the images for animations are external files - do you need also them or is it enough if I will send only project file?
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

kamiledi15 wrote: Sat Dec 24, 2022 1:27 pm Ok, I can upload the file. But the images for animations are external files - do you need also them or is it enough if I will send only project file?
The file is plenty. I can always set my own image to check it.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

This is caused by the bone scaling on frame one. The bone length and image scaling should really be done on the setup frame (frame zero).

What's happening is that the thigh bone being scaled is stretching the envelop that the shin bone rotates through (scaled in one direction), altering how the art appears to attach to the shin bone.

And while not part of this problem, all the layer transforms and reparented bones on frame one are likely to give you problems down the road. Aside from very few exceptions, you really don't want any of your rig setup outside of frame zero.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

So I just need to parent all bones on frame 0 and it will solve the problem?
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

The main problem is that you're scaling the bones on frame one. You'd be better off making them the needed lengths on frame zero.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Leg doesn't stick to the bone

Post by Greenlaw »

kamiledi15 wrote: Sat Dec 24, 2022 4:13 pm So I just need to parent all bones on frame 0 and it will solve the problem?
That's correct. Frame 0 is Moho's setup frame. You should make sure everything about your rig is good at frame 0 before you begin animating the puppet on the later frames. In fact, some rig editing tools don't even work on later frames and they must be used on frame 0.

Frames 1 and later are animation frames, and being able to animate the rig predictably there depends on the quality of the rig at frame 0.

As a helper, make sure Highlight Frame 0 is enabled in Preferences>Timeline. This draws a red box around the Workspace frame so you know you're on frame 0 and not a later frame. You might also want to assign Design Mode to a hot key so you can toggle instantly between your current animation frame and the setup frame when you need to make rig edits after you've started animating the character.
Last edited by Greenlaw on Tue Dec 27, 2022 7:30 pm, edited 2 times in total.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

Thanks for the answer, but it didn't help. I moved timeline to frame 0 and reparented all bones, but with the same result. I also completely deleted this one bone and leg and added them again in frame 0 - but it still looks the same. It seems that I would have to start from scratch, but I will leave it as it is - it won't be long animation, so I can adjust leg position manually in every frame.
But thanks for trying to help me.
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Leg doesn't stick to the bone

Post by synthsin75 »

Here's the fix for that leg:
https://www.mediafire.com/file/2yb41eb9 ... .moho/file

Since the bones were scaled on frame one, I have to multiply the scale by the bone length and make that the new bone length for both leg bones on frame zero. Then I could delete the scale keyframes, move the shin bone to attach to the new length of the thigh bone (on frame zero), and delete the frame one shin bone translation. Then I just had to realign and scale the art on frame zero to align with the bone, and delete any frame one keyframes.

Like I said above, you're biggest problem is scaling the bones on frame one. If they need to be longer, it's better to change their length on frame zero.
kamiledi15
Posts: 32
Joined: Mon May 14, 2018 6:25 pm

Re: Leg doesn't stick to the bone

Post by kamiledi15 »

Wow, it works great now. Thanks for your help!
Post Reply