MR Move Targeted Joint Script

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
KuzKuz
Posts: 483
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

MR Move Targeted Joint Script

Post by KuzKuz »

The videos are in Russian but English subtitles are available.



This tool allows you to easily fine-tune the elbows and knees of your character when target bones are in use.
To work correctly it requires a hierarchical pair of bones controlled by a target. The bones must not be flipped. The lower bone (the shin or the forearm) must not have any Y-axis translation.

Download here: http://mohoscripts.com/script/mr_move_targeted_joint
Last edited by KuzKuz on Thu Jun 15, 2023 12:37 pm, edited 2 times in total.
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: MR Move Targeted Joint Script

Post by Víctor Paredes »

Your scripts are always simple and incredibly clever!
Thank you very much (again) for sharing it.
Image Image Image Image
Moho Product Manager

www.mohoanimation.com
Rigged animation supervisor in My father's dragon - Lead Moho artist in Wolfwalkers - Cartoon Saloon - My personal Youtube Channel
User avatar
KuzKuz
Posts: 483
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Move Targeted Joint Script

Post by KuzKuz »

Thank you Victor!

I slightly corrected the script, now when you press the left mouse button, the knee will not jump to the cursor position. You will be able to move it from its original position, which will give you even more precision. If you downloaded the script before this comment appeared, please re-download it. I apologize for the inconvenience.
F.M.
Posts: 497
Joined: Thu Nov 04, 2004 4:29 pm
Location: Between my ears

Re: MR Move Targeted Joint Script

Post by F.M. »

Thank you very much, for your generosity!
"and then Man created god!"
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Move Targeted Joint Script

Post by Greenlaw »

Whoa! This one is going to be especially useful KuzKuz.

Thank you so much for sharing this tool.
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Move Targeted Joint Script

Post by Daxel »

Good job as always, thank you!
User avatar
WatchMotion
Posts: 28
Joined: Sun Feb 04, 2018 4:47 am

Re: MR Move Targeted Joint Script

Post by WatchMotion »

This looks like a truly useful script, thank you! But I'm not sure what I'm doing wrong here, when I press the left mouse button it just deselects the bones?

https://www.dropbox.com/s/kbe8nm4xrzkbj ... .moho?dl=0
User avatar
KuzKuz
Posts: 483
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Move Targeted Joint Script

Post by KuzKuz »

WatchMotion wrote: Mon May 03, 2021 6:48 pm This looks like a truly useful script, thank you! But I'm not sure what I'm doing wrong here, when I press the left mouse button it just deselects the bones?
Thank you! Just turn on the "Ignored by inverse kinematics" option for the "B1" bone. If B1 has more than one child bone, it will work without this option.
User avatar
WatchMotion
Posts: 28
Joined: Sun Feb 04, 2018 4:47 am

Re: MR Move Targeted Joint Script

Post by WatchMotion »

Thanks! That's working perfectly, I can't wait to use this in future projects!
User avatar
hayasidist
Posts: 3523
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: MR Move Targeted Joint Script

Post by hayasidist »

KuzKuz wrote: Fri Jan 08, 2021 4:33 pm This tool allows you to easily fine-tune the elbows and knees of your character when target bones are in use.
To work correctly it requires a hierarchical pair of bones controlled by a target. The bones must not be flipped. The lower bone (the shin or the forearm) must not have any Y-axis translation.

Download here: http://mohoscripts.com/script/mr_move_targeted_joint
... для меня не проблема, но ваша локализация возвращает английскую фразу, если fileWord == "Файл" :)
User avatar
KuzKuz
Posts: 483
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Move Targeted Joint Script

Post by KuzKuz »

Thanks, hayasidist! I just updated the script.
I added Russian localization and the new option "Maintain Proportions" that allows you to maintain the ratio of the lengths of bones in relation to each other.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: MR Move Targeted Joint Script

Post by davoodice2 »

incredible! thanks
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
DK
Posts: 2854
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: MR Move Targeted Joint Script

Post by DK »

Finally...Thank you so much for this amazing too KuzKuz!!!
Cheers
D.K
User avatar
Hoptoad
Posts: 618
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Re: MR Move Targeted Joint Script

Post by Hoptoad »

Hi, thanks for making the script. I experimented with target bones in the past, but never used target bones in my rigs because of the issues it created with joints. It was simply easier for me to not use target bones. Your clever script solves the problem I had with the joint. Thank you for making it.

Unfortunately, the script doesn't seem to be working for me.

I made a simple hip/leg/foot test rig with a target bone. On frame 1 or later, the script apparently does not allow me to manipulate the leg bones or the root bone. If I click a leg bone, the target bone gets selected instead. The two bones of the foot can be manipulated, though. But since I can't select the upper and lower leg bones, the script won't move the joint like it should.

I'm no expert with target bones, so I am probably making a mistake somewhere. Does it work for the MacOS? Maybe that's the problem...
User avatar
DK
Posts: 2854
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: MR Move Targeted Joint Script

Post by DK »

It's working this end although I had a little trouble seeing the icon.That said, this tool should come stock standard with Moho. Makes working with Target bones a pleasure!
Thanks again KuzKuz.
D.K
Post Reply