Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Cage posted Thu, 04 January 2007 at 10:45 PM

Well, here's what's happening.  I have a working method to find the polygons for each vert, as outlined by svdl on page 1.  But there is a serious flaw somewhere which I can't seem to isolate and repair.  Running the current process with anything but objects of the lowest vertex counts leads to serious RAM leakage while comparing the meshes.  To the point at which the method becomes unworkable.  I seem to be fighting with intrinsic flaws in Python's memory management.  These are fixed in Python 2.5, allegedly, but that doesn't help us, in PoserPython-land.

So until and unless I either wake up with a magically increased IQ or someone smarter and more Python adept comes along to fix the problem, the script looks like it may be sunk.  I think this script concept could be a wonderful addition to the Poser arsenal if it can be made to work, but making it work probably requires someone better at this sort of thing than I am.  

The attached is the current state of the development testing script for the vert-to-polygon method.  It requires a Poser scene with two props loaded.  If anyone want more detail about the code, hopefully to try to work out the trouble, I'll be happy to explain further. 

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