Bone order in bones list

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
isby
Posts: 10
Joined: Thu Feb 02, 2017 1:25 pm

Bone order in bones list

Post by isby »

Very dumb question guys: I have a lot of bones... "hand left", "foot right", etc. and now I'd like to order them somehow in the dropdown, for more efficiency. Currently they're ordered in the order they were created and, of course, there was a LOT of mind-changing, name changing, etc.
Can it be done, or should I just re-create the whole skeleton?

Thank you!

Ivan
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bone order in bones list

Post by SimplSam »

I would imagine the Bones are sorted by ID by default, so in theory - to Sort you would need a script to:

- Inventory the current bones (ID & Name)
- Duplicate each bone, but in alphabetical order
- Assign old relationships to the new bones (i.e. Targets, Parents etc.) with new related ID's
- ReAssign animation properties (i.e. Locking, Binding etc.)
- Delete the original bones

There are probably some bits of this script already out there in Moholand.
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
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone order in bones list

Post by synthsin75 »

It would be easier to make a mod of the bone tool that just displays them in a different order.

But yeah, short of a script, you'd need to recreate the whole skeleton if you really want them in a specific order.
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone order in bones list

Post by synthsin75 »

If you haven't recreated your whole skeleton yet, wait. I've found an easy way to sort the bone dropdowns, and I'm almost done with it.
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone order in bones list

Post by synthsin75 »

Here's a script that will sort all bone dropdowns alphabetically, with auto-named bones listed after all named bones.

https://www.dropbox.com/s/uvt6c1qku5j7v ... s.zip?dl=0

Just unzip and drop this into the scripts/utility folder in your custom content folder.


For interested scripters, this replaces two functions in the lm_utilities, so no stock tools (or even the stock utilities file) needed to be modded.
Last edited by synthsin75 on Sat Jul 01, 2017 8:18 pm, edited 1 time in total.
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bone order in bones list

Post by SimplSam »

Amazing and elegant. Works a treat, and probably gonna start me on a whole 'nother path of scripting.
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
isby
Posts: 10
Joined: Thu Feb 02, 2017 1:25 pm

Re: Bone order in bones list

Post by isby »

synthsin75 wrote:If you haven't recreated your whole skeleton yet, wait. I've found an easy way to sort the bone dropdowns, and I'm almost done with it.
Luckily, I'm in a completely oposite time zone, apparently :) Thank you!
It works! Just a note, it disables the "select bone" dropdown button until you've selected any bone by clicking on it. Not a big deal, since I'm a fresh user, might require some adjustment for a long-time user.
Thank you again!
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone order in bones list

Post by synthsin75 »

isby wrote:It works! Just a note, it disables the "select bone" dropdown button until you've selected any bone by clicking on it. Not a big deal, since I'm a fresh user, might require some adjustment for a long-time user.
Thank you again!
That's normal behavior...not my script. I can tell you how to edit the stock tool if it bothers you. Not sure when they changed that, but it's the same going back to at least v11.2.

Anyway, sorted bone lists is something I wanted too.
User avatar
A.Evseeva
Posts: 61
Joined: Wed Apr 08, 2015 8:43 am
Contact:

Re: Bone order in bones list

Post by A.Evseeva »

The link is broken :о((( Does anybody have this script downloaded?
User avatar
synthsin75
Posts: 9972
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Bone order in bones list

Post by synthsin75 »

I've updated the above link.
User avatar
A.Evseeva
Posts: 61
Joined: Wed Apr 08, 2015 8:43 am
Contact:

Re: Bone order in bones list

Post by A.Evseeva »

Thank You very much! Works fine.
Post Reply