Adverti horiz upsell

Delete unknown nodes in maya scene in 1 click. 1.0.0 for Maya (maya script)

delete those nodes in your scene file that are part of a plugin, or otherwise that you can't track down manually.

License
Button download
1,198 Downloads

Compatibility

  • 2014, 2013, 2012, 2011, 2010, 2009, 2008

Operating Systems

  • Irix
  • Linux
  • Mac
  • Solaris
  • Windows

History

Created:07/08/2013
Last Modified:07/08/2013
File Size: 464 Bytes

Bugs

Not working here !

Statuspending
Prioritylow
Date12/09/2014
Submitted byLAOMUSIC ARTS LAOMUSIC ARTS
Here is the History by trying to use your script. (Notice that I deleted all comments, just in case!):

cmds.delete(asd) # 3: delete the unknown nodes

[]

# Error: line 1: TypeError: file <maya console> line 17: Object [] is invalid #

import maya.cmds as cmds # import the standard maya module for python

asd = cmds.ls(typ="unknown") # "Get" the nodes in scene labeled as unknown.

print asd # 1: print a list of the unknown items, visible in the script editor.

cmds.select(asd) # 2: select the unknown nodes

cmds.delete(asd) # 3: delete the unknown nodes

[]

# Error: line 1: TypeError: file <maya console> line 4: Object [] is invalid #

import maya.cmds as cmds

asd = cmds.ls(typ="unknown")

print asd

cmds.select(asd)

cmds.delete(asd)

[]

# Error: line 1: TypeError: file <maya console> line 4: Object [] is invalid #


Any clue ?

Comments on this bug:

  • LAOMUSIC ARTS

    LAOMUSIC ARTS said almost 9 years ago:

    Forgot to mention: I am on a MBP 2011 OSX1068, Maya 2011 SP1
  • enviraldesign@gmail.com

    enviraldesign@gmail.com said almost 9 years ago:

    Hi Laomusic arts, Fortunately, and unfortunately, that error means there was nothing in your scene to delete! Meaning the script did not pick up anything of interest. It's a very basic script that only selects nodes that maya sees as "unknown". For example, if you have vray installed in one computer, and not another those vray nodes will show up as unknown. Sometimes these can create problems so this script allows you to select and delete those nodes.

Post a comment: