Hi,

I'm trying to 'properly' unload the mental ray plugin from Maya using the 
following code:

# reset renderer
cmds.setAttr('defaultRenderGlobals.currentRenderer', 'mayaSoftware', 
type='string')
cmds.renderer('mentalRay', unregisterRenderer=True, edit=True)
cmds.flushUndo()
# all mental ray node type
nodeTypes = cmds.pluginInfo('Mayatomr', query=True, dependNode=True)
nodes = cmds.ls(type=nodeTypes); # print nodes
cmds.delete(nodes)
cmds.flushUndo()

However, the following command always return False:

cmds.pluginInfo('Mayatomr', query=True, unloadOk=True)

If I try to manually unload the plugin, an error message is displayed but 
the services in use list is empty:

 Services provided by this plug-in are

currently in use.
[...]

The following services are in use:



Any ideas?





-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/8063f9e1-7657-4f1c-b8ee-61a6c830e618%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to