Forum: Poser Python Scripting


Subject: Moving morphs between different figures

Cage opened this issue on Dec 20, 2006 · 1232 posts


Cage posted Fri, 18 April 2008 at 2:16 PM

Okay.  More testing.

It looks pretty definite that the odd weight results are coming from the .pyd, unfortunately.  I've varied the conditions and I still keep getting weights with the same pattern I've outlined above.

I think the RAM issue may be a Cage goof, caused by doing del on each Mesh instance during the loop.  Somehow Python may be able to overwrite the variable name and keep the data in memory for reference cleanup later.  I need to test a bit more.  There may be some oddities with reference passing elsewhere in my process.  At any rate, Poser now uses the same amount of RAM as before, but eventually releases it, although not right when the script finishes.  Previously, it's taken that RAM and never let go of it.  So I think I'm on the right track....

I have a proposal for expanding the .vwt file data.  If we add the hit distance to the end of each listing, it won't interfere with current read processes and it will open up new potential applications for the file type.  With multi actor looping, I can save a full .vwt comparison for each of the actors in the loop.  If distances are included, one can easily call up any combination of actor .vwt files and compare the distances to find the best matches.  Storing the distances could also enable the .vwt files to be used for a no poke function without running the comparisons at that time, by calling up the .vwt file.  Adding this seems like a good idea to me, but I don't want to change the type without getting your input.  We could also add a comment at the top, listing the various actors used in the multi-actor comparison, or something.  I assume tweaks to the comment portions are not an issue at all.

===========================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.