I DID IT!

I leveraged the vtx normal to check against the orientation of the joint.

because I figure the vtx normals on the mesh are all going the same direction 
this could be used to apply a consistent axis to test against.

specifically I query the Zaxis-normals-Y component and check that against the 
vtx-normals-Y component.  If they are BOTH pointing in a positive direction OR 
if they are BOTH pointing in a negative direction then the joint is orient 
properly. Otherwise use the other point on the edge to flip the orientation.

it's not pretty but I think its solves the problem.

here is the code:
http://pastebin.com/q0gJyuBf

persistence pays off!

Thanks everyone for the ideas and support.  now onto the next part riggin the 
joints

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to