Copyright (c) 2023
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Compatibility
-
2014, 2013, 2012, 2011, 2010, 2009, 2008
Operating Systems
History
Created: | 07/08/2013 |
Last Modified: | 07/08/2013 |
File Size: | 464 Bytes |
Keywords
Bugs (1 reported)
Help make this item even better. Your bug reports are appreciated!
Date | Priority | Title | Status |
---|---|---|---|
12/09/2014 | low | Not working here ! | Pending |
Bugs
Not working here !
Status | pending |
---|---|
Priority | low |
Date | 12/09/2014 |
Submitted by | |
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 said almost 9 years ago:
Forgot to mention: I am on a MBP 2011 OSX1068, Maya 2011 SP1 -
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:
Report a bug
Related Items:
-
scPushMatrix Node Plugin Matrix Collision Node Lip Pushing 1.0.0 for Maya (maya plugin)
$50.00 (USD) -
Kami - Stylized hair/hair cards plugin for Maya 2020-23 1.0.0 for Maya (maya plugin)
$49.00 (USD) -
BitCake Exporter - a Game Animation plugin 1.1.0 for Maya (maya script)
$20.00 (USD) -
Overlay Plugin for 3dsmax 1.0.0 (3dsmax plugin)
$20.00 (USD) -
CHLBR Batch Render plugin for nuke 8.x for Nuke 1.0.0 (nuke plugin)
$40.00 (USD) -
Ecosystem for Maya 1.3.0 (maya plugin)
$199.99 (USD)