Bone Selection Buttons Tool

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Bone Selection Buttons Tool

Post by Stan »

Buttons that can be assigned for quick selection of bones.

Image



Download here: http://mohoscripts.com/script/sz_bone_selection_buttons
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
Víctor Paredes
Site Admin
Posts: 5665
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Bone Selection Buttons Tool

Post by Víctor Paredes »

This is amazing! I will use this in my projects for sure.
Thank you very much (again!) Stan :)
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
synthsin75
Posts: 9975
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone Selection Buttons Tool

Post by synthsin75 »

Wow. Very nice, Stan.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: Bone Selection Buttons Tool

Post by ulrik »

Thank you, this is a great tool! 😀
User avatar
alanthebox
Posts: 214
Joined: Sat Feb 03, 2018 5:31 pm
Contact:

Re: Bone Selection Buttons Tool

Post by alanthebox »

As a low-to-mid level user, I'm curious when or how this script would be implemented in a project. Anyone willing to give an example or two? Just want to make sure I'm working as efficiently as possible!
User avatar
Greenlaw
Posts: 9269
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Bone Selection Buttons Tool

Post by Greenlaw »

That looks pretty cool!

Thanks for sharing this Stan. I'll download and try it this evening.
User avatar
hayasidist
Posts: 3525
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Bone Selection Buttons Tool

Post by hayasidist »

very useful concept!
I'm thinking that this could get an update so it doesn't just allow selection of the set of bones you want, but it also hides the bones you don't want to see -- harking back to the discussion about keyed bone visibility.... e.g. you have several "arm bone groups" (because you have variant art work for different arm poses) and you only want one of those bone groups active at a time (matched to the active art work).
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bone Selection Buttons Tool

Post by SimplSam »

This is an excellent tool, very handy.

Here are some things I have noted in-use:

1 - If the bones have certain characters in the name like '-', the group selection does not work

2 - The tool allows empty groups to be created - if you click and create without any bones selected

3 - Why use alt-Click to create? Why not just Click? I have tested the revised script logic and it seems to work OK. The 'Click' just checks if the Group button is empty or not and then decides to create or select

4 - If you free-up the Alt key, then you could use the following key combos/logic (or similar): alt-Click to redefine a single Group button (Assign new selected bones + Prompt for rename -or- Clear the button if no bones selected), ctrl-alt-Click to remove the button (i.e. clear it and shuffle it along to end)

5. Also .. I agree with @hayasidist. Could potentially have a "Show Only" type check box - behaving somewhat similar to Lukas's "Toggle Color Bones" script

Image

6. Also also .. I think the ' + ' buttons make more sense with 'Click' logic
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Bone Selection Buttons Tool

Post by Stan »

To answer all "why?" questions, I can tell you that the tool has a pretty long story. It's actually the 3rd version.

This is what the first version looked like:
Image

And this is the v2:
Image

So, the evolution is obvious, and I hope that eventually I'll find some time to create a v4.

Thank you guys, I really appreciate your feedback! I'm reading it thoroughly and making my notes.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bone Selection Buttons Tool

Post by SimplSam »

Whoa! I like the evolution.

We look forward to versions 4, 5, 6 ...
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Bone Selection Buttons Tool

Post by Stan »

SimplSam wrote: Sun Jan 10, 2021 4:37 am 1 - If the bones have certain characters in the name like '-', the group selection does not work

2 - The tool allows empty groups to be created - if you click and create without any bones selected
That is fixed now, thank you Sam!

The link is the same: http://mohoscripts.com/script/sz_bone_selection_buttons
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bone Selection Buttons Tool

Post by SimplSam »

Cool thanks - works great.
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Post Reply