MR Transform Rig Tool 2.0 BETA 14

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

Moderators: Víctor Paredes, Belgarath, slowtiger

mohgirl
Posts: 86
Joined: Mon Mar 22, 2021 1:33 pm

Re: MR Transform Rig Tool

Post by mohgirl »

KuzKuz wrote: Wed Dec 06, 2023 11:44 am Hello, I need examples of files to test the script on, as everyone has their own approach to work.
This script is very complex, and I will try to find time to understand the issues, but currently, I'm going through a difficult period and am unable to tackle this right now.
The original moho project documents are suspected of confidentiality and cannot be sent to you. I tried to restore the previous steps yesterday to restore this error but failed. But I demonstrated my operating steps with pictures. This pop-up window really appeared once and never appeared again.

https://ibb.co/wzf1Ctz
Daxel
Posts: 1087
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Transform Rig Tool

Post by Daxel »

Hi KuzKuz. Today I had a problem with this amazing tool when using it on a vitruvian bone. Moho 14.1.

When using the transform rig tool to flip a vitruvian bone (the one with the 'V'), it affects and breaks the rigging of the other vitruvian bones that are part of that vitruvian group, because it transforms those other vitruvian bones while leaving their artwork intact, so the bones are no longer correctly placed over the artwork. To avoid this issue, the vitruvian bones need to be ungrouped (deactivating them is not enough) before performing the flip. I tested the rotation too and the same happens.

I wonder if the intention was to make the tool affect every vitruvian bone in the group (but correctly of course), or only the selected one, because I can see how affecting every vitruvian bone could be handy in some cases, however in my case I only wanted to affect the selected vitruvian bone.

I made a quick demo in case you cant to test it. It's just a simple 2 arms Vitruvian group. To reproduce the issue just select one V-bone and transform it with the transform rig tool.
https://1drv.ms/u/s!AiyKCw6Xey5Tgp0kUB4 ... g?e=c5udvp

Have a nice day!
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool

Post by KuzKuz »

Daxel wrote: Fri Jan 05, 2024 1:34 pm Hi KuzKuz. Today I had a problem with this amazing tool when using it on a vitruvian bone. Moho 14.1.

When using the transform rig tool to flip a vitruvian bone (the one with the 'V'), it affects and breaks the rigging of the other vitruvian bones that are part of that vitruvian group, because it transforms those other vitruvian bones while leaving their artwork intact, so the bones are no longer correctly placed over the artwork. To avoid this issue, the vitruvian bones need to be ungrouped (deactivating them is not enough) before performing the flip. I tested the rotation too and the same happens.

I wonder if the intention was to make the tool affect every vitruvian bone in the group (but correctly of course), or only the selected one, because I can see how affecting every vitruvian bone could be handy in some cases, however in my case I only wanted to affect the selected vitruvian bone.

I made a quick demo in case you cant to test it. It's just a simple 2 arms Vitruvian group. To reproduce the issue just select one V-bone and transform it with the transform rig tool.
https://1drv.ms/u/s!AiyKCw6Xey5Tgp0kUB4 ... g?e=c5udvp

Have a nice day!
Hello! When working with the Vitruvian Bones, the script automatically finds all the bones that are part of the Vitruvian group, but not the layers. That is, all layers with a vector always need to be selected manually.
Daxel
Posts: 1087
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Transform Rig Tool

Post by Daxel »

KuzKuz wrote: Sat Jan 06, 2024 10:54 pm
Hello! When working with the Vitruvian Bones, the script automatically finds all the bones that are part of the Vitruvian group, but not the layers. That is, all layers with a vector always need to be selected manually.
Of course, that makes sense. Sorry, my mind had a lapse there.
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool 1.2.3

Post by KuzKuz »

MR Transform Rig Tool version 1.2.3

Changelog:
1. Fixed a bug where, in some situations, flipping parts of the rig caused incorrect adjustments of bone rotations in actions.
2. Fixed a bug where duplicating a bodypart resulted in smartbones having incorrect bone angle animation.

Download link: https://mohoscripts.com/script/mr_transform_rig_tool
Daxel
Posts: 1087
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Transform Rig Tool 1.2.3

Post by Daxel »

oh! I'm pretty sure I ran into that problem when flipping a hand rig. I wasn't sure if I did something wrong. Thanks for keeping the tool updated, it is amazing.
User avatar
lucasfranca
Posts: 180
Joined: Sat Oct 07, 2017 11:47 pm

Re: MR Transform Rig Tool 1.2.3

Post by lucasfranca »

KuzKuz wrote: Wed Feb 28, 2024 5:17 pm MR Transform Rig Tool version 1.2.3

Changelog:
1. Fixed a bug where, in some situations, flipping parts of the rig caused incorrect adjustments of bone rotations in actions.
2. Fixed a bug where duplicating a bodypart resulted in smartbones having incorrect bone angle animation.

Download link: https://mohoscripts.com/script/mr_transform_rig_tool
Thank you very much for your efforts! I had a problem here with this update:

Code: Select all

...ive\Moho\Moho Pro\Scripts\Tool\mr_transform_rig_tool.lua:5996: attempt to index a nil value (local 'sBone')
An old guy [since 1983] who was raised in front of the TV.
Passionate about animation, after getting old, he decides to make it his hobby.

I share tutorials, reviews, tips and tricks from this vast world of animation on my channel.

https://youtube.com/animai2D
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool 1.2.3

Post by KuzKuz »

Daxel wrote: Wed Feb 28, 2024 5:48 pm oh! I'm pretty sure I ran into that problem when flipping a hand rig. I wasn't sure if I did something wrong. Thanks for keeping the tool updated, it is amazing.
Thanks!
lucasfranca wrote: Wed Feb 28, 2024 10:12 pm Thank you very much for your efforts! I had a problem here with this update:

Code: Select all

...ive\Moho\Moho Pro\Scripts\Tool\mr_transform_rig_tool.lua:5996: attempt to index a nil value (local 'sBone')
Updated the script on the website. This should protect against the error.
Daxel
Posts: 1087
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Transform Rig Tool 1.2.4

Post by Daxel »

Hi there!

Today I used this wondeful tool to copy a body part from one rig to another like I often do, but I noticed the layer animations (like transform layer) in the smartbones are not being correctly transferred to the other rig, something is off. I did some tests and it's the bone scaling process that doesn't create the layer animation in a relative manner.

So, for example, if you have a head rig with an "eyes" layer, and a smartbone like Head L-R, that animated the eyes layer transform to make the head look to the right, if you use this script to scale down the head rig, to 50% for example, now the eyes layer transform animation in the Head L-R smartbone will keep moving the eyes the same distance as before, but, because the head is smaller now, the eyes will get out of the head.

I'm guessing this was always like this, but I'm surprised I didn't notice it before so please let me know if this happens only on my end for some reason, or if it's a bug or a known limitation. I tried the adaptative scale and rotation setting but didn't make a difference. I'm not sure what does that do.

I'm using the latest 1.2.7 version. Here is a minimal reproduction project, just in case it helps: https://1drv.ms/u/c/532e7b970e0b8a2c/EW ... g?e=XKIw7t

Have a nice day!
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool 1.2.4

Post by KuzKuz »

Hi, thanks. Yes, it’s a limitation. I always try to avoid using layer transforms in smartbones.
You can bind layers to bones and transform them. If you need uniform scaling, you can use pin bones.
Daxel
Posts: 1087
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Transform Rig Tool 1.2.4

Post by Daxel »

KuzKuz wrote: Tue Jun 17, 2025 3:15 pm Hi, thanks. Yes, it’s a limitation. I always try to avoid using layer transforms in smartbones.
You can bind layers to bones and transform them. If you need uniform scaling, you can use pin bones.
Thanks for answering, I'll follow your advice.
User avatar
Greenlaw
Posts: 10451
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Transform Rig Tool 1.2.4

Post by Greenlaw »

KuzKuz wrote: Tue Jun 17, 2025 3:15 pm ...If you need uniform scaling, you can use pin bones.
I never thought of that. Great tip! :D
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool 2.0 BETA 14

Post by KuzKuz »

MR Transform Rig Tool 2.0 BETA 14

Hello, I’ve been working on new versions of the scripts for some time now. At the moment I have several stable releases that I can share. I don’t have the ability to record video tutorials right now, so I’ll try to describe the new features in text.
  1. Diagnostic Mode
    The Diagnostic mode tab allows you to detect rigging issues such as:
    • Finding and fixing smart bones whose default position does not match the zero frame.
    • Finding layers with transformation and resetting the transformation without visual changes on the screen while preserving all smart bones. You can reset the transformation of all layers in the rig with a single click.
    • Searching for accidentally created bones and curves that overlap each other.

    This functionality is needed not only to keep the rig clean but also to ensure that other new features of the tool work correctly.
  2. Editing Mode
    The Editing mode tab has the following capabilities:
    • Frame One Editing – lets you transform the rig on the first frame and bake those changes into the zero frame. That is, you can change the character’s proportions, move and scale body parts, edit the positions of points and curvature, and then click Apply Frame One Editing.
      The tool will apply these changes to the zero frame without breaking the smart bones. You can use smart bones to transform the character’s body. For example, rotate a squashing smart bone and bake that deformation into the zero frame.
      To do this, select the smart bone and click Protect Smartbone so that the bone’s position does not change.
    • Advanced Mode from the first version is now called Bones Editing mode and now supports working with points.
  3. Transforming Mode
    In the Transforming mode tab, a Smart Unlink button has been added, which allows you to unlink without destroying smart bones.
The idea behind this version is not only to be able to transplant body parts from one character to another but also to change the character’s proportions.

https://drive.google.com/file/d/11IbdGP ... sp=sharing
User avatar
KuzKuz
Posts: 619
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Transform Rig Tool 2.0 BETA 14

Post by KuzKuz »



User avatar
Greenlaw
Posts: 10451
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: MR Transform Rig Tool 2.0 BETA 14

Post by Greenlaw »

Awesome! I'm planning to spend more time with MR Transform Rig this week, so this is very timely!

Thank you for creating and sharing so many excellent tools, Eugene! Your work makes Moho even more fun to use!

Image
Post Reply