

def initializePlugin(mobject):
    plugin = OMMPx.MFnPlugin(mobject, 'Adam Mechtley', kVersionNumber, 'Any')
    try:
        plugin.registerNode(AM_ShoulderConstraintNode.kPluginNodeTypeName, AM_ShoulderConstraintNode.kPluginNodeId, AM_ShoulderConstraintNode.nodeCreator, AM_ShoulderConstraintNode.nodeInitializer)
    except:
        sys.stderr.write(('Failed to register node: %s\n' % AM_ShoulderConstraintNode.kPluginNodeTypeName))
        raise
    try:
        plugin.registerCommand(AM_ShoulderConstraintCmd.kPluginCmdName, AM_ShoulderConstraintCmd.cmdCreator, AM_ShoulderConstraintCmd.syntaxCreator)
    except:
        sys.stderr.write(('Failed to register command: %s\n' % AM_ShoulderConstraintCmd.kPluginCmdName))
        raise

dataset/ETHPy150Open CountZer0/PipelineConstructionSet/maya/plugins/2014/win64/AM_ShoulderConstraint.py initializePlugin/original