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