dennisharoldsen opened this issue on Apr 08, 2008 · 32 posts
Cage posted Fri, 11 April 2008 at 9:47 PM
There shouldn't be any rotation in the spawned prop, relative to the base geometry for the original from which it was spawned. CreateGeomFromGroup seems to only spawn a geometry without transforms or deformations. So if the object from which you spawn the trimmed prop doesn't have zeroed transforms, you should see some difference in position between it and the new trimmed prop.
I've done some testing. this doesn't work so well with body parts. Best to use props. I also can't seem to use the geom insertion trick to restore the original geometry to the prop on which we've acted - which means the process does embed a new geomCustom reference in your actor, so you should back up before running this, or be prepared to edit the .pp2 or .cr2 to correct things later, if you want to backtrack.
Deformations could be transferred over, but because this uses an internal PoerPython trick with the CreateGeomFromProp, it's difficult to calculate any vertex correlations before the run of the script. I suppose it could be done, possibly, by trying to correlate the groups, but I assume indexing may get muddled. I need to look at how that works out. So the meshes would have to be correlated in some way after the trim. TDMT could handily correlate the meshes and transfer any morph deformations, but I haven't tried that at all yet....
I'm glad this is helping you, then. Don't pick up my poor coding habits from my scripts, however. LOL I'm sloppy and I don't adhere to good coding practice, as I understand it. I like to throw around Very Big Arrays, which isn't supposed to be the best approach.
I'm a bit confused about your question concerning the extra processing time. At what point in the process?
===========================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.