Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

Cage opened this issue on Feb 24, 2010 · 592 posts


Cage posted Thu, 04 March 2010 at 2:53 PM

Well, I didn't get much done yesterday, because I was trying to work out a way to improve the speed of the script, particularly for users who can't use Spanki's tdmt.pyd.  I'm considering these test timing results on my system when I obsess about this:

I suspect that comparisons could end up running longer than 10-15 minutes with V4 involved.  Comparing two actors of V4-level resolution could give a user the opportunity to step out and run errands for a few hours.  :lol:

So I'm trying to speed things up, and so far nothing has worked.  Any additional screening steps have actually slowed things down.  Numeric has basic vector and matrix tools, but all we need here is a vector length or point distance calculation, and Numeric doesn't provide that.

So I'm considering trying to make a simple console program using PureBasic, which can receive the vertex point cloud data and materials screening data, then write out the final file.  I would be able to compile this for both Windows and Mac, and for different processors, as I understand it.  Unlike a .pyd, this would not be sensitive to changes in Python version or version of the compiler used to build the program, and a Mac version wouldn't have to be created on a Mac.  PoserPython could just start up the program and let it process the data, which processing should be much faster than what we can get from straight PoserPython.  I'm not sure how it would compare to the speed of the .pyd.  Use of the external program would be optional with the script, so no one is forced to use a process which they might not like, for whatever reason.

That's assuming I can put the program together.  I know Dark Basic Professional game programming language pretty well, which is very similar.  :unsure:

If anyone has thoughts or objections to this idea, or a better idea, please jump in!  :m_bouncy:

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