Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Cage posted Sun, 16 March 2008 at 11:23 PM

It looks like the IOError: errno 9 Bad file descriptor is the OS complaining about a read/write operation.  As far as I can tell, the Mac OS doesn't like my using the Flush() command in this context with the file.  I haven't seen this error on Windows XP or Vista under Poser 5 or 7, and no one else has encountered it.  :(

But I don't think the Flush() call is really necessary, either.  So here's a test replacement file for the tdmtUtility.py.  It needs to be saved with that name and placed in the TDMT folder with the other module scripts (all of them with names beginning with "tdmt").  Delete the .pyc files in that folder, so Poser will recognize this new one.  Just replace the old tdmtUtility.py altogether.

The script on page one is slow, has a major RAM leak, and doesn't work well if your target geometry has a higher vert count than your source geometry.  And it doesn't do shape transfer, only morph transfer.  The new version(s) have been shown to work.  There are just some new bugs being revealed which haven't been noted before, because they haven't been a problem for anyone else (or because no one else has used the script?).  There are version-specific problems possible with Poser (I tested on Poser 5 while developing) and cross-platform issues possible for Mac users, with path handling and file IO matters.  We'll work it out.  Don't panic!  :D

My apologies for the extended series of errors, however.  All I can say is: these are new to me.  :(

A question: what does the acronym ISTR mean?

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