Cage opened this issue on Feb 24, 2010 · 592 posts
Cage posted Sat, 27 March 2010 at 3:45 PM
I don't think the new function likes me. :lol:
I'm trying to test it, and I'm getting the following error. I've had the script print the inputs I'm using and their types, before it throws the error.
Quote -
delta: Vector at <1B2B8F40> = (0.000203347, 0.000223982, -0.000447271)
normalized delta: Vector at <1B2B8F60> = (0.376589, 0.414803, -0.828323)
norm length: 1.0
vi: 0 <type 'int'>
mesh1.mesh: Mesh at <17F2B720> <type 'Mesh'>
close_index: [3143, 218, 4710, 1830, 207, 4379] <type 'list'>
norm: Vector at <1B2B8F60> = (0.376589, 0.414803, -0.828323) <type 'Vector'>
hitpoint = mesh2.mesh.CorrelateToNearVertListByRay( vi, mesh1.mesh, close_index, norm )Exception in Tkinter callback
Traceback (most recent call last):
File "C:Program Filese frontierPoser 7RuntimePythonliblib-tkTkinter.py", line 1345, in call
return self.func(*args)
File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsTDMTfilesspanki_vector11TDMT_Match5f2.py", line 1069, in handleRun
goodrun = run(actS,actT,path,distEpsilon,matsT,matsS,dot,dot2,influences,digits=5)
File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsTDMTfilesspanki_vector11TDMT_Match5f2.py", line 42, in run
close_verts_weights(mesh1,mesh2,threshold,matsT,matsS,dotnorms,num_influences=num_influences)
File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsTDMTfilesspanki_vector11TDMT_Match5f2.py", line 438, in close_verts_weights
hitpoint = mesh2.mesh.CorrelateToNearVertListByRay( vi, mesh1.mesh, close_index, norm )
_tdmt.error: requires:vertIndex, correlateMesh, correlateVertList, rayNorm]
I'm not sure what the _tdmt.error being thrown represents. It acts like it's receiving the wrong type somewhere, but the types are verified. The normal is a proper normal. :lol: It's being called using the mesh2.mesh, as with the other ray-casting functions.
Any ideas? 
===========================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.