Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Cage posted Wed, 26 March 2008 at 1:11 PM

Woo!  Another .pyd update!  Using the default new instances is probably less likely to create an easy reference snarl.  Does that mean that, for instance, the use of clone() (now Clone()) is no longer necessary in the multi-actor implementation?  I guess I need to try it and see, huh?

Or, wait.  You added the new instances on 3/25 and then undid them on 3/26.  So, uh... my previous paragraph is pointless.  Don't read it, okay?

Basically, method name alterations, added Clone and Copy, and fixed the IndexLists.  Good, good.  :D

Anyway, the silly thing I posted last night was broken because I'd commented out the FLT_EPSILON.  Fixed in this one, just to be posting a less buggy version for anyone who wants to try to explore the whole thing.  The effort to convert the C example to Poser is, I suspect, intrinsically flawed.  Most of his constants seem to be sensitive to scale, and there's also a need to convert from his timing process which uses the system clock to one which uses steps (or frame rate).  There's also a bit of trickiness in plugging in our collision methods with his code.  He uses gravity in his equations in kind of the way that we use normals for collision raycasting.  Right now the script uses both, in different parts of the process, but could presumably only use one or the other (perhaps normals direction with an adjustment for the intensity of his gravity force).  Anyway, this kind of shows that something like this might be possible - the .pyd seems fast enough for calculations like this - but it seems evident that the implementation would need to change a great deal.  I'm not sure it's worth my developing any further.  My basic idea was that we could use the cloth simulation as a clothlike shrink method, if we sent vertices in the direction of their normals, rather than the gravity direction.

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