def uninitializePlugin(mobject):
    plugin = OMMPx.MFnPlugin(mobject)
    # dependency node
    try:
        plugin.deregisterNode(AM_ShoulderConstraintNode.kPluginNodeId)
    except:
        sys.stderr.write('Failed to deregister node: %s\n' % AM_ShoulderConstraintNode.kPluginNodeTypeName)
        raise
    # command
    try:
        plugin.deregisterCommand(AM_ShoulderConstraintCmd.kPluginCmdName)
    except:
        sys.stderr.write('Failed to unregister command: %s\n' % AM_ShoulderConstraintCmd.kPluginCmdName)
        raise
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/maya/plugins/2014/win64/AM_ShoulderConstraint.py/uninitializePlugin/original