def initializeManipulator1(Manipulator):

    def _manipulatorCreator():
        return ompx1.asMPxPtr(Manipulator())

    def _manipulatorInit():
        ompx1.MPxManipContainer.addToManipConnectTable(Manipulator.ownerid)
        ompx1.MPxManipContainer.initialize()

    def initializePlugin(obj):
        version = '.'.join(map(str, Manipulator.version))
        plugin = ompx1.MFnPlugin(obj, 'Cmdx', version, 'Any')
        assert Manipulator.name.endswith('Manip'), "Manipulator '%s' must have the name of a plug-in, and end with 'Manip'"
        plugin.registerNode(Manipulator.name, Manipulator.typeid, _manipulatorCreator, _manipulatorInit, ompx1.MPxNode.kManipContainer)
    return initializePlugin
def initializeManipulator1(Manipulator):

    def _manipulatorCreator():
        return ompx1.asMPxPtr(Manipulator())

    def _manipulatorInit():
        ompx1.MPxManipContainer.addToManipConnectTable(Manipulator.ownerid)
        ompx1.MPxManipContainer.initialize()

    def initializePlugin(obj):
        version = '.'.join(map(str, Manipulator.version))
        plugin = ompx1.MFnPlugin(obj, 'Cmdx', version, 'Any')
        assert Manipulator.name.endswith('Manip'), "Manipulator '%s' must have the name of a plug-in, and end with 'Manip'"
        plugin.registerNode(Manipulator.name, Manipulator.typeid, _manipulatorCreator, _manipulatorInit, ompx1.MPxNode.kManipContainer)
    return initializePlugin