Cage opened this issue on Apr 03, 2010 · 610 posts
Cage posted Mon, 28 March 2011 at 8:03 PM
The problems with creating new hair groups and hair props seems to have been resolved. My code had gotten jumbled up at some point and I'd ended up fighting myself. Poser creates no problems if you tell it to grow guide hairs when they already exist, which simplifies matters.
The undo process was slightly messy because Poser was automatically applying the Kink Strength setting for the hair prop, when I set the undo vertex positions. With Kink Strength turned off, that problem is solved. However there now seem to be problems when there's a rotated parent hair prop. In that case, I can't seem to remove the parent rotation from the vertex positions. I'm stripping them out with the inverse parent matrix, but they go right back in somewhere in the process. If I un-rotate the parent, set the positions, then rotate back, Poser intially shows the baked-in rotations I was trying to remove. Then, upon refresh, it doubles those, moving the hair vertices inexplicably. So something I don't quite understand is happening, and undo only works properly if the hair prop parent is not rotated.
Otherwise, things are moving along swimmingly. The attached image shows the results of the handling by "locks" which I'd been planning. Compare the image to the earlier example I posted and you can see how the hair positioning differs.
I have a few more things to add, including handling by hair group and the option to position hairs along a defined direction rather than radially around the parent prop. So it's getting there, but I have to push back my first release date a bit. Didn't get much done yesterday, due to being 'under the weather'. :unsure:
===========================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.