How can I limit the movement of object tied to a bone?

Have you come up with a good Moho trick? Need help solving an animation problem? Come on in.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

How can I limit the movement of object tied to a bone?

Post by BorisSt »

I need to create some object and make sure that this object don't cross certain area, which I'll draw.
I've seen a lot of videos where people do that, but I still don't understand how to do this cause nobody of them don't show the process of creating a scene.
So I will be very grateful for the help.
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by Greenlaw »

Can you post an example of the issue? I'm not sure if you're asking about constraining bone movement or something else.

If you want to constrain bone movement, look under the Bone Constraints menu after selecting the bone. From there, you can constrain IK movement, rotation, etc.

Or are you talking about limiting movement of an item with a Smart Bone action? If so, set the maximum rotation of your Smart Bone and the final key pose of your animation to the same last keyframe in the action. Then, when you turn the Smart Bone while in the mainline, the animation will never go farther than the pose in that last keyframe of the action. If you're new to Smart Bones, be sure to read the tutorial that comes with Moho.

If you're talking about something else, you'll need to explain more clearly what you're trying to do, and maybe post screen caps with notes.
Last edited by Greenlaw on Tue Jul 10, 2018 7:09 pm, edited 1 time in total.
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: How can I limit the movement of object tied to a bone?

Post by hayasidist »

BorisSt wrote:I need to create some object and make sure that this object don't cross certain area, which I'll draw.
??? moving some object so it doesn't go in front of another??? -- (static or animated) layer order? masking?
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

Re: How can I limit the movement of object tied to a bone?

Post by BorisSt »

I need the object to always be aimed at the bone, but not cross a certain area I've set.
In other words, I attached two photos and I need the red circle to stay within the white circle, but always aim for the bone wherever it goes (even if the bone goes beyond the white circle, the red circle should remain within the white circle).
I hope you understand what I mean. Sorry for my bad english :)
Image
Image
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by synthsin75 »

Something like this?
http://www.filedropper.com/stayincircle

There's also a better way that requires scaling one rotating bone to .01 on frame one and setting its Max IK Scaling to 100.
Last edited by synthsin75 on Tue Jul 10, 2018 9:38 pm, edited 1 time in total.
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

Re: How can I limit the movement of object tied to a bone?

Post by BorisSt »

Unfortunately I couldn't open the file. Can you send screenshots of your work?
Image
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by synthsin75 »

Are you not using Moho 12?
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

Re: How can I limit the movement of object tied to a bone?

Post by BorisSt »

No, I use Anime Studio Pro 11.
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by synthsin75 »

BorisSt wrote:No, I use Anime Studio Pro 11.
http://www.filedropper.com/stayincircle_1
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by Greenlaw »

Nice demo file Wes!

@BorisSt

Quick description of Wes' setup: parent a second bone to the setup you currently have, and bind the dot to the end of the second bone. The dot should be at the edge of the circle, not the center. Next, add a third bone (unparented) as a target for the second bone.

Animate the target bone and the IK in the first two bones will allow the dot will follow it. If you move the target outside of the circle, the first two bones will extend only up to the edge of the circle and keep the dot inside.

This should work in ASP 11, and I think as far back as 10 or 9.5.
Last edited by Greenlaw on Tue Jul 10, 2018 10:16 pm, edited 1 time in total.
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

Re: How can I limit the movement of object tied to a bone?

Post by BorisSt »

This is exactly what I needed, thank you all very much! :D
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How can I limit the movement of object tied to a bone?

Post by synthsin75 »

Here's the best way to do it, and it does work in AS11.
http://www.filedropper.com/stayincircle_2

The red circle is point bound to the tiny bone pointing down, with independent angle (so it doesn't spin). The rotating bone is scaled to .01 on frame zero*, has its Max IK Scaling set to 100, and is targeting the unparented bone pointing up.

This is better because the red circle doesn't spin and it's not as fiddly to set up so it can reach dead center.


*I meant frame one.
Last edited by synthsin75 on Wed Jul 11, 2018 7:10 pm, edited 1 time in total.
BorisSt
Posts: 9
Joined: Tue Jul 03, 2018 12:56 pm

Re: How can I limit the movement of object tied to a bone?

Post by BorisSt »

I got it, thanks again for the files and information about.
I'll choose the right way for my scene. :)
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: How can I limit the movement of object tied to a bone?

Post by hayasidist »

good demo Wes!
Post Reply