Page 1 of 1
					
				Bone order in bones list
				Posted: Mon Feb 13, 2017 8:04 am
				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
			 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 2:44 pm
				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.
			 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 3:21 pm
				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.
			 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 5:59 pm
				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.
			 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 6:30 pm
				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.
 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 8:04 pm
				by SimplSam
				Amazing and elegant. Works a treat, and probably gonna start me on a whole 'nother path of scripting.
			 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 8:30 pm
				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!
 
			
					
				Re: Bone order in bones list
				Posted: Mon Feb 13, 2017 8:55 pm
				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.
 
			
					
				Re: Bone order in bones list
				Posted: Sat Jul 01, 2017 8:19 am
				by A.Evseeva
				The link is broken :ะพ((( Does anybody have this script downloaded?
			 
			
					
				Re: Bone order in bones list
				Posted: Sat Jul 01, 2017 12:19 pm
				by synthsin75
				I've updated the above link.
			 
			
					
				Re: Bone order in bones list
				Posted: Sat Jul 01, 2017 11:28 pm
				by A.Evseeva
				Thank You very much! Works fine.