MR Pose Tool 3.4 (Update 20.07.2024)

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: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.0 (Update 29.06.2024)

Post by KuzKuz »

Greenlaw wrote: Mon Jul 01, 2024 7:22 am Version 3.0 looks AWESOME, Eugene.

I'm embarrassed to say I'm not using MR Pose Tool nearly enough, but I have it installed in 14.2 and I'll definitely use it on my next animation project.

Thanks for continuing the improvements! :D
Thank you! I hope you find this script useful!
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by KuzKuz »

Update 3.1

Added support for Relative Keyframing and bug fixes. Please note that when the Relative Keyframing option is enabled, the Smart Bake function becomes unavailable.

Download link - https://mohoscripts.com/script/mr_pose_tool

User avatar
lucasfranca
Posts: 180
Joined: Sat Oct 07, 2017 11:47 pm

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by lucasfranca »

Every day the tool gets more incredible.
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
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by Daxel »

That's amazing! I had to have a modded transform bone tool just for that. Thanks.
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by KuzKuz »

Thank you! Version 3.1.1. Fixed a bug related to Relative Keyframing.
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by Daxel »

Nice! I was thinking about layer navigation and how we don't have a quick way to go to a layer's parent bone layer, which is one of the most frecuently repeated actions using Moho.

We have two scripts for that, one from Danfield (https://mohoscripts.com/script/am_select_bonelayer) and another from Davoodice (I can't find this one), and there have been some requests for a version that automatically selects the manipulate bone tool to combine those two so repeated actions in one single button/shortcut, but as I read SimpleSam commented it is not possible for a script to change the active tool.

But I'm wondering: do you think we could have your Pose tool script calling the select bone layer script code at the beggining if a bone layer is not selected? That way we could be animating some vector points and we just directly select the pose tool to animate the bones.
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by KuzKuz »

Yes, I can add an option to the Pose Tool that will automatically switch to the parent skeleton if the current layer is not a skeleton.
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1 (Update 10.07.2024)

Post by Daxel »

That would be so cool!
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by KuzKuz »

Update 3.1.2 Added the Auto-select skeleton layer option.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by SimplSam »

The Auto-Select Skeleton works, but ... you can also get locked-in.

i.e. I normally Edit Bones, then select a content-layer to do other stuff, and the 'selected' tool will adjust to be compatible with that layer.

With this Auto-Select Skeleton feature - I can't leave the bone layer - until I disable it, or choose another tool.
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by Daxel »

That was fast! Thank you so much.

I'm testing and I experienced the same problem as SimplSam. Also for me it's not automatically picking the pose tool; it only selects the bone layer but it doesn't automatically change the active tool.

Is the quick visit to frame 0 necessary?

I'm guessing the complication is Moho's feature of disabling groups of tools acording to the selected layer's type? I wouldn't mind at all if the pose tool is always selectable like the select bone tool is. It would also make sense considering you can select bones with the pose tool.

One thing I really like over the select bone layer script is that you make the layer panel move to show the selected bone layer which is nice.
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by KuzKuz »

Hi, thank you for the feedback!
Unfortunately, I cannot make the script activate when switching to the bone layer.

I have changed the logic.
The script now selects the parent skeleton if you are on a different layer type and just click in the viewport.
Switching to frame 0 and back is necessary to refresh the tool panel to display the bone tools.
Please let me know if this solution resolves all issues.

https://drive.google.com/file/d/1GKcvDN ... sp=sharing
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by Daxel »

It works and the problem of getting stuck is solved. The only thing I notice now is the temporal "prohibited" icon while changing the tool that I think didn't show up before.

Thank you so much, but with those Moho limitations, the need to go back to frame 0 and the need to still make two presses (counting the click) I feel sadly it's not really superior to the alternative of pressing two buttons/shortcuts (for the select bone layer tool and the pose tool). It has the plus of not having to keep the select bone layer script, and the feature can be useful as an anti-confusion measure, in case we try to pick the pose tool thinking we were on a bone layer, which still happens to me. But I still wanted to have a one press quick go to the bone layer and the pose tool, and it looks like it's not something Moho can do, so as others proposed I tried learning some Autohotkey and I have a little piece of code that, to my surprise, works. So here it is, if someone is interested.

It selects the pose tool and goes to the parent bone layer directly with a single press. I managed to make it work only when we are using Moho, and at the same time it won't work inside Moho when you are in a text edit field so it doesn't interfere when writing layer names, etc. If somebody finds a problem please let me know.

These are the instructions for the noobs like me:

1. Download Autohotkey from the official website. Its free: https://www.autohotkey.com/

2. On the menu press on New Script, it will create a file.

3. Edit it. You can use notepad. Paste the following code. The 1 is my personal shortcut to the select bone layer script. If you use a different one, replace it with your own key. If you use shift+X, write +x. Then the +d is my shortcut to the pose tool. Replace accordingly, you can use the shortcut of a different bone tool like the manipulate bone tool if you want.

Code: Select all

#If WinActive("ahk_class LM_Wnd") ; Context-sensitive to Moho Pro 14 window
+D:: ; Define Shift+D hotkey
{
    ControlGetFocus, focusedControl, A
    if (focusedControl != "Edit1")
    {
        ; Your existing logic here
        Send, 1 ; Send the key "1" (replace "1" with your shortcut to the select bone layer tool)
        SendInput, +d ; Send Shift+D (replace "+d" with your shortcut to the pose tool)
    }
    else
    {
        ; Handle Shift+G for Edit1 here
        SendInput, +d ; Send Shift+D
    }
}
#If ; End context-sensitive hotkey
4. Just run the script double-pressing the script file.

Now I'm thinking I could also add a way to select the bone layer of any character clicking on it, like atl+rightclick does but with bone layers. It could take as input shift+alt+rightclick and it would send alt+rightclick, then the shortcut to the select bone layer script, and then the shortcut to the pose tool. It would feel good going back and forth between the characters of a shot.
User avatar
KuzKuz
Posts: 611
Joined: Mon Aug 19, 2013 5:12 pm
Location: Ukraine

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by KuzKuz »

I have adjusted it so that if you move the cursor away from the quick menu, you can navigate to other bone layers simply by clicking on them.
Additionally, if this navigation occurs from a bone layer, switching to frame zero and back is not necessary since the panel already displays bone tools.



https://drive.google.com/file/d/1GKcvDN ... sp=sharing
Daxel
Posts: 1081
Joined: Wed Mar 27, 2019 8:34 pm

Re: MR Pose Tool 3.1.3 (Update 12.07.2024)

Post by Daxel »

That's very cool!
Post Reply