pymel.core.system.unloadPlugin

unloadPlugin(*args, **kwargs)

Unload plug-ins from Maya. After the successful execution of this command, plug-in services will no longer be available.

Flags:
Long name (short name) Argument Types Properties
addCallback (ac) callable ../../../_images/create.gif
 
Add a procedure to be called just before a plugin is unloaded. The procedure should have one string argument, which will be the plugin’s name.
force (f) bool ../../../_images/create.gif
 

Unload the plugin even if it is providing services. This is not recommended. If you unload a plug-in that implements a node or data type in the scene, those instances will be converted to unknown nodes or data and the scene will no longer behave properly. It will, however, still save properly.

removeCallback (rc) callable ../../../_images/create.gif
 
Remove a procedure which was previously added with -addCallback. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.unloadPlugin

Example:

import pymel.core as pm

# Unload the plugin that has the internal name "newNode"
#
pm.unloadPlugin( 'newNode.py' )

Previous topic

pymel.core.system.undoInfo

Next topic

pymel.core.system.warning

Core

Core Modules

Other Modules

This Page