Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Cage posted Sat, 06 March 2010 at 1:24 AM

odf:  I'm not going near UV transfer, for the time being.  :lol:  An interesting idea, but I'm not ready for it.

Feel free to try it if you'd like.  It could really be something, if it can be made to work.  The version of TDMT available on my scripts page (sigline) includes a UV module.  There, you can find all the messy experiments I was conducting.  I believe the code still works.  If you re-map one ball prop and try to port the UVs to another, it might make a simple test which wouldn't take too long using the slower, older version of TDMT.

(Oh, man.  Just tested it and Poser 7 crashed.  Forgot about that.  I need to disable the menus on the old TDMT.  They do something bad.  Don't try to run the UV code in P7!  It works in P5.)

Go to it, with your speed ideas.  I'm looking at my code for close_verts_falloff(), and it's a mess.  I patched together pieces of a few things I'd worked on earlier when I constructed it, and I didn't think to clean it up before releasing the script.  I'm not sure anything in the messy part is slowing it down, but I'll look at it closely.

So... if I have a distance of 5.0, but I'm not doing the square root, it's a squared distance of 25.0.  And if my threshold of 0.006 is being squared, it's 0.000036.  So.  Umm.  The threshold has grown smaller while the distances have grown larger.  Which causes way more distances to be screened than we want.  That's where I'm seeing a problem.  I'm sleepy enough right now to believe I'm imagining the problem.  :lol:  Is my reasoning correct, here?  The threshold should grow larger if the distances are growing larger.  Otherwise, the whole thing is off.  😕

And, oh man.  I did the calculation on the calculator, then shut it off and typed the result from an obviously limited short-term memory.  :blushing:

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