MR Track Bone Script

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

Moderators: Víctor Paredes, Belgarath, slowtiger

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

MR Track Bone Script

Post by KuzKuz »

This script allows you to track a bone globally and take its transformation to any other bone of any skeleton.
You can get both the position and the rotation.


This video shows you the MR Track Bone script for Moho in action. The script can be really useful in certain situations.
The videos are in Russian but English subtitles are available.



Download link: http://mohoscripts.com/script/mr_track_bone
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: MR Track Bone Script

Post by Lukas »

Wow nice! I’ve tried to script this a few times and never succeeded… This is super useful, thanks for sharing 🙏
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Track Bone Script

Post by Daxel »

thank you so much! this looks amazing.
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: MR Track Bone Script

Post by Víctor Paredes »

Thank you very much, Eugene.
It's a fantastic script!
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
Greenlaw
Posts: 9270
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Track Bone Script

Post by Greenlaw »

Wow! This is amazing Eugene!

I've wanted this kind of 'world coordinate' baking capability in Moho for a long time. I do something similar when transferring animations between different 3D programs, especially when mocap and dynamics are involved, but I didn't think this was possible for Moho.

Thanks for creating and sharing this tool! Downloading and installing now!
AHMED003ADALAT
Posts: 50
Joined: Wed Dec 20, 2017 11:27 pm

Re: MR Track Bone Script

Post by AHMED003ADALAT »

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

Re: MR Track Bone Script

Post by KuzKuz »

Thank you guys, I really appreciate your feedback!
User avatar
Greenlaw
Posts: 9270
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Track Bone Script

Post by Greenlaw »

I almost forgot about this tool and today I finally got around to trying it. MR Track Bone is amazing Eugene! I'm already thinking of fun ways to use it for my next project.

Please keep up the excellent work! :D
User avatar
KuzKuz
Posts: 483
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Track Bone Script

Post by KuzKuz »

Greenlaw wrote: Mon Dec 13, 2021 1:58 am I almost forgot about this tool and today I finally got around to trying it. MR Track Bone is amazing Eugene! I'm already thinking of fun ways to use it for my next project.

Please keep up the excellent work! :D
Thank you! I have a lot of ideas for new scripts. :)
User avatar
570295535
Posts: 12
Joined: Sat Feb 04, 2023 9:32 am

Re: MR Track Bone Script

Post by 570295535 »

This script tracks the x-axis, y-axis and angle, but does not track Scale. Some scenarios will cause exposure. Can you update it to track Scale
Last edited by 570295535 on Tue Feb 07, 2023 1:59 am, edited 1 time in total.
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: MR Track Bone Script

Post by synthsin75 »

Bones can't move in the z-axis. Only their layers can.
User avatar
570295535
Posts: 12
Joined: Sat Feb 04, 2023 9:32 am

Re: MR Track Bone Script

Post by 570295535 »

synthsin75 wrote: Tue Feb 07, 2023 1:11 am Bones can't move in the z-axis. Only their layers can.
Sorry, I'm wrong. It's not the z-axis, it's Scale.
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: MR Track Bone Script

Post by synthsin75 »

Ah, that makes more sense.
User avatar
Greenlaw
Posts: 9270
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Track Bone Script

Post by Greenlaw »

With the tool as it exists now, when I need to include the offset created by a scaling bone I just track the position of a child bone of the scaling bone.

Or do you need a bone in the second bone layer to inherit the screen-relative scaling of the original bone for some reason? Just curious how you would use this.
User avatar
570295535
Posts: 12
Joined: Sat Feb 04, 2023 9:32 am

Re: MR Track Bone Script

Post by 570295535 »

Greenlaw wrote: Tue Feb 07, 2023 5:54 am With the tool as it exists now, when I need to include the offset created by a scaling bone I just track the position of a child bone of the scaling bone.

Or do you need a bone in the second bone layer to inherit the screen-relative scaling of the original bone for some reason? Just curious how you would use this.
I have some a-bone layers, which have animation, such as running and jumping.
My role of bone b needs to completely inherit the pos, angle and scale of bone a. In this way, it can complete smooth running and jumping without k frames.
Post Reply