I have a script to determine the distance between two objects, but it’s just creating a “distanceBetween” node, connecting, getAttr(obj.distance) and then deleting it. Seems very inefficient.
Is there a way to extract the distance from a matrix or a vector with math? I’m sure there’s some elegant way to calculate that!
And then how would I code this in python cmds? or with OpenMaya?