Disconnects two connected attributes. First argument is the source attribute, second is the destination.
|Long name (short name)||Argument Types||Properties|
If the destination multi-attribute has set the indexMatters to be false, the command will disconnect the first matching connection. No index needs to be specified. Flag can have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.disconnectAttr
import pymel.core as pm # Create a sphere and cone and connect their rotate attribute. # sph = pm.sphere() con = pm.cone() sphereR = '%s.r' % sph coneR = '%s.r' % con pm.connectAttr(sphereR, coneR) # Break the connection between the rotate attributes. # pm.disconnectAttr(sphereR, coneR)