The method of Richard, works briefly the issue.
To use 2 objects without having to select and taking names, just type:

cmds.delete (cmds.parentConstraint (pCube1 "," pCube2 "))

Or any selected object in the scene:

import maya.cmds the cmds
cmds.delete (cmds.parentConstraint (cmds.ls (sl = 1)))

Without a relationship .. very good.

Thank you all for help and contribution.

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to