Forum: Poser Python Scripting


Subject: Request/wish: the opposite of Auto-Group

R_Hatch opened this issue on Oct 18, 2007 ยท 3 posts


R_Hatch posted Thu, 18 October 2007 at 1:49 AM

A script to automatically name bones according to the group that occupies the same XYZ coordinates. It would work as follows:

(1) User takes grouped mesh into Setup Room.

(2) Using Bone tool, the user creates bones for each group, and drags them into place.

(3) User runs script, which first parses the skeleton, and stores each bone's center of mass XYZ coordinates.

(4) Script parses mesh for groups, and then gets center of mass XYZ for each group.

(5) Script compares these two lists.
(5a) Errors should be returned if:

(5b) If no errors are found, the script attempts to match each bone and group according to their center of mass XYZ coordinates, and rename each bone thusly. Upon successful completion, the script should give a friendly "Done!" message.

I got the idea for this from Paloth and Conniekat8, so blame them if you end up staying up all night creating this script ;p


PhilC posted Thu, 18 October 2007 at 1:33 PM

If your starting point is a correctly grouped OBJ file and a known hierarchy you may find that creating the figure using the Poser menu "File/Convert Hierarchy File" to be quicker.

Have a look at Roy Riggs PHI Builder. That will take an OBJ file and spit out a hirierchy file. You will need to do some editing but this is basically just drag and drop withing the application to go from its best guess at the hierarchy to what you actually want.

I use it frequently. It is available from http://www.royriggs.com/poser.html


R_Hatch posted Fri, 19 October 2007 at 2:50 AM

I appreciate the advice, but I must inform you that I hate PHI files. I prefer to initially rig entirely within Poser, tweaking in CR2Builder if/when necessary.