Cage opened this issue on Feb 24, 2010 · 592 posts
Cage posted Thu, 04 March 2010 at 4:47 PM
Quote - I avoid external applications if I can, because they tend to complicate things. If I can't get things fast enough in pure Python, I'd rather make a .pyd like Spanki did than use a separate program.
Look, if this can be expressed as a function call with inputs and outputs, give me the specs and I see if I can come up with something. Or point me to the part of your code that does it.
I was afraid the idea might be too awkward. Dang.
I'm not trying to draft anyone into writing a new .pyd. :blushing: Not that I'll reject any offers. :lol:
All that's really needed is access to a fast form of vector length or point distance calculation. The script function which does this is close_verts_falloff(). The key lines are:
if no_pyd:
p2 = mesh1.verts[nvi]
dist = (p2[0]-vert[0])**2 + (p2[1]-vert[1])**2 + (p2[2]-vert[2])**2 # 2.48 min
else:
dist = vert.PointDistance(mesh1.verts[nvi]) # 48 seconds
I was considering just throwing all the data at the external program and letting it do the heavy work, trying to minimize any back-and-forth interactions between the external program and PoserPython.
If you want to look at it, then thank you. :thumbupboth: But don't let me drag you away from anything important (Antonia!). :laugh:
===========================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.