Maya Lighting & Rendering
Maya Animation
cmds.pluginInfo("Mayatomr", q = 1, dependNode = 1)
def RemovePluginNodes(PlugIn = "mtoa", Verbose = 1):
'''
DESCRIPTION
Remove nodes of the given plug-in.
INPUT ARGUMENTS
- string - PlugIn - Name of the plug-in. You can check the exact (maya) name of the plug-in in the Maya Plug-in Manager.
For eg.: Mental Ray plugin file: Mayatomr.mll -> "Mayatomr"
- int - Verbose - provide extra information about the process
RETURN
None
'''
plugInNodeTypeList = cmds.pluginInfo(PlugIn, q = 1, dependNode = 1)
for plugInNodeType in plugInNodeTypeList :
existingPlugInNodeList = cmds.ls(type = plugInNodeType)
if existingPlugInNodeList:
cmds.delete(existingPlugInNodeList)
if Verbose:
print "Deleted nodes:\t%s" % existingPlugInNodeList
![]() |
Human eyes see as linear - perceptually linear |
![]() |
Computers / cameras see as linear - value linear |