<s> from maya import OpenMayaMPx <EOL> import nodefactory_final as nodefactory <EOL> _deregister_funcs = [ ] <EOL> def register_otherdemo ( plugin ) : <EOL> reg , dereg = nodefactory . create_node ( <EOL> nodefactory . NT_DEPENDSNODE , '<STR_LIT>' , <NUM_LIT> , <EOL> [ <EOL> nodefactory . create_attrmaker ( <EOL> nodefactory . A_COLOR , '<STR_LIT>' , '<STR_LIT:c>' ) , <EOL> nodefactory . create_attrmaker ( <EOL> nodefactory . A_ENUM , '<STR_LIT>' , '<STR_LIT:e>' , default = <NUM_LIT:1> , <EOL> fields = [ <EOL> [ '<STR_LIT>' , <NUM_LIT:1> ] , <EOL> [ '<STR_LIT>' , <NUM_LIT:2> ] ] ) , <EOL> nodefactory . create_attrmaker ( <EOL> nodefactory . A_STRING , '<STR_LIT:string>' , '<STR_LIT:s>' , default = '<STR_LIT>' ) , <EOL> ] ) <EOL> reg ( plugin ) <EOL> _deregister_funcs . append ( dereg ) <EOL> def register_transformdemo ( plugin ) : <EOL> reg , dereg = nodefactory . create_node ( <EOL> nodefactory . NT_TRANSFORMNODE , '<STR_LIT>' , <NUM_LIT> , [ ] ) <EOL> reg ( plugin ) <EOL> _deregister_funcs . append ( dereg ) <EOL> def _toplugin ( mobject ) : <EOL> return OpenMayaMPx . MFnPlugin ( <EOL> mobject , '<STR_LIT>' , '<STR_LIT>' ) <EOL> def initializePlugin ( mobject ) : <EOL> plugin = _toplugin ( mobject ) <EOL> register_otherdemo ( plugin ) <EOL> register_transformdemo ( plugin ) <EOL> def uninitializePlugin ( mobject ) : <EOL> plugin = _toplugin ( mobject ) <EOL> for func in _deregister_funcs : <EOL> func ( plugin ) </s>
