Cage opened this issue on Apr 03, 2010 · 610 posts
Cage posted Sun, 27 March 2011 at 1:17 AM
The hair script is coming along nicely, but with some predictable complications. I'm trying to set it up so the user can select a normal geometry group and the script will automatically turn that into a hair group and grow the guide hairs. This sometimes works, but other times Poser fights me and Python throws an exception. In addition to automatically renaming the group to prevent a duplicate actor name (because the hair prop and hair group must have the same name), Poser sometimes creates a blank hair prop with no guide hair geometry. When this happens, all hope is lost. :lol: :cursing: Then there's no way to query whether the prop is valid without throwing another exception.
So possibly the script will have to require that the user set up the hair groups and grow the guide hairs before running the script. I'll keep trying to work it out, but so far I can't discern a pattern in Poser's behavior.
I've managed to define "locks" of hairs as rows on Y or X (relative to the hair normal at its base vert, which is treated as pointing outward on Z) along the geometry surface. That's important to be able to work out some of the hair handling I hope to set up. So things are looking positive, overall.
I'm also trying to add one level of undo, in case a shaping proves undesirable and the user wants to backtrack. That's working, but I always seem to have to modify the result by the inverse of the parent prop's world matrix, which seems to create a slighly messy restored geometry. I'm wondering if this is the "matrix drift", which is sometimes mentioned, cropping up. :unsure:
It's looking good, though, and I hope to be able to have an initial version out in 2-3 days.
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.