This custom tool and utility script combo, allows for grouping and colorizing bones. It also displays bone names above the bone. The bone label text size is based on initial bone length. This can be a bit of an issue with very small bones. I could probably adjust that percentage to not get too small.
bone-groups-v8.zip
I modified rotate and select bone tools for the video below. Instructions for doing this yourself are below. It is not very difficult and only requires adding 3 lines of code to any tool script. All you need is Notepad or Textedit or any plain text editor.

Important Notes:
1) I have not figured out how to store the data in the file yet, until I do, there is an external file created when the AS file is saved that must stay with that document in the same folder. This file requires the ".tbl" extension... not sure why I chose that extension. it is just a plain text file that stores bone grouping and color information.
A bonus for this external file is if you have two different files with the same bone names and the same bone layer name, you can copy that .tbl file, change the name to match another file, place it in the same folder as the other file and when you open it, there will be the same bone grouping set up.
2) There is a utility script that must be put in the scripts/utility folder.
Other than that it works okay. Of course it's pretty useless without being able to use it with other tools. I am still trying to work on that. There is a really nice practical use for it without editing the other tools. The bone grouping allows you to select just the bones in the group. By selecting from the menu it selects all bones in the group quickly and easily. Much faster than shift selecting the same bones over and over and you can have bones in more than one group. It works on any frame if the bones are on top of each other, you can go to a different frame for easier selection of the bones.
Modify Other Tools to display bone grouping
If you feel comfortable editing your tools directly you can add the following code to any bone tool just above the "Tool options" comment. DO NOT USE MS WORD! Or any other word processing type application. Use Notepad or textedit. Any application that can edit and save PLAIN text.
The example below was added to the lm_rotate_bone.lua tool. You only need to copy/paste the three lines of the [/b]DrawMe[/b] function and not the comment below it. That's just to show where it is in the tool.
Make sure you change the function name to match the tool. In this case LM_RotateBone:DrawMe is the function name for that tool. If it were the Select bone tool, it would be changed to LM_SelectBone:DrawMe. That small bit of text can simply be copied and pasted within the tool script.
Code: Select all
function LM_RotateBone:DrawMe(moho, view)
HV_SharedUtils:DrawMe(moho, view)
end
-- **************************************************
-- Tool options - create and respond to tool's UI
-- **************************************************
With a little effort I should be able to have the bone labels change orientation so that it stays "up" for readability.
-vern