Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Spanki posted Thu, 20 March 2008 at 11:20 PM

I'm pretty sure that time() - stime just gives you the total elapsed number of seconds.  So the CorrelateMeshVerts() version is just 8.5 seconds, vs 199 seconds for the python version.

199.14 seconds divided by 8.5 seconds = 23.43 times faster.. not bad.  When I first tested this, my biggest impression was that the looping through, creating the morph was still a significant portion of the total time - I bet if you commented out that portion (or moved the stop time up to just after return from the call), you'd see that the CorrelateMeshVerts() is only taking a fraction of a second.

With my other test script (vector_test.py), I was/am seeing 50x - 200x (or more) speed-up pretty consistantly on large vert-count meshes.

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.