cmds.pluginInfo('Mayatomr', query=True, loaded=True)
On Mon, Jun 30, 2014 at 8:58 AM, Sylvain Delhomme <[email protected]>
wrote:
> 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
> <https://groups.google.com/d/msgid/python_inside_maya/8063f9e1-7657-4f1c-b8ee-61a6c830e618%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAM9RXoLMcJcKUTbDhGnZjxGX%3DkFwf1q%2BxcBHtaJ4ofUxOey47g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.