ah oh well. after some testing I think it might be impossible to auto orient that joint. The problem seems to be that the command for:
edgeEndPoints = mc.xform(selectedEdge, query=True, worldSpace=True, translation=True) It gives the points in a lowest to highest order, however this is a problem, some meshes have crazy point orders when you split and weld back together. is there a command to re-order the point ID's? I realized ( I think?) that any math test that I can do to qualify where the point is located in relation to the joint center is flawed due to the fact that I'm not sure which point will be returned first. basically I would always want to find the point on the "left hand" side of the joint but I cant figure a way to do that with the way this command is structured. I might either have the user add a second selection edge to define the "rail" or "X axis" of the joint orientation, OR provide a control to manually flip the joint once the chain is made. I'm not sure which way is least annoying. -- 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.
