Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
I wrote this script for a project to build nested groups for objects.
You need to type in naming string in the "Name Hierarchy" field. The syntax is to use character "|" to define defferent hierarchies, then you can get multiple groups. You can also use two local variable, $name and $id, to give each group different naming rules.
The "prefix"/"postfix" checkboxes and text-fields are used to add prefix and postfix to each hierarchies, which enable you to achieve common information through the group chains.
The Undo Group button uses an algorithm to loop througn the objects you select and extract the root nodes from a brunch of transform nodes, which can reset the scene to what it looks like before you execute the script.
I hope this tool can help you a little during modeling or preparing scene for rigging. And for more detail discription, you can read the doc-string in the script and if you run into any bugs, contact with me.
V1.1.0: Fixed a bug when solving groups of only one hierarchy