I am creating a distance node and need to point constrain the two locators to some joints but the problem is, how would I go about finding them using Python? (They are not selected after the command)
selected = mc.ls(sl=True)
t_one = mc.xform(IKP[0], q=True, t=True, ws=True)
t_two = mc.xform(IKP[3], q=True, t=True, ws=True)
mc.distanceDimension(sp = t_one , ep= t_two,)