{"id":214,"date":"2016-08-09T20:37:19","date_gmt":"2016-08-09T10:37:19","guid":{"rendered":"http:\/\/alrichardson.com\/?p=214"},"modified":"2016-08-09T20:38:56","modified_gmt":"2016-08-09T10:38:56","slug":"removing-unknown-nodes-from-your-scene","status":"publish","type":"post","link":"https:\/\/alrichardson.com\/?p=214","title":{"rendered":"Removing unknown nodes from your scene"},"content":{"rendered":"<p>I&#8217;ve recently found myself working in files with which<br \/>\na co-worker has used a plugin which I don&#8217;t have.<br \/>\nSaid plugin has created nodes which my version of Maya<br \/>\ndoes not recognize, so on load I get the classic error raised :<\/p>\n<p><a href=\"https:\/\/alrichardson.com\/wp-content\/uploads\/2016\/08\/errors.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/alrichardson.com\/wp-content\/uploads\/2016\/08\/errors-300x97.png\" alt=\"errors\" width=\"300\" height=\"97\" class=\"alignnone size-medium wp-image-215\" srcset=\"https:\/\/alrichardson.com\/wp-content\/uploads\/2016\/08\/errors-300x97.png 300w, https:\/\/alrichardson.com\/wp-content\/uploads\/2016\/08\/errors.png 448w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Through dealing with this I&#8217;ve developed a solution:<br \/>\nFind and delete said nodes!&#8230;.. Brutal.<\/p>\n<p>Now we can find these nodes using<\/p>\n<pre class=\"lang:python decode:true \" >import maya.cmds as cmds\r\nunknownNodes = cmds.ls(type = 'unknown')\r\nprint unknownNodes <\/pre>\n<p>But if we try to delete them we get an error &#8220;#Error: Node is locked and cannot be deleted.&#8221;<\/p>\n<p>so we need to unlock them with:<\/p>\n<pre class=\"lang:python decode:true \" >\r\nfor node in unknownNodes:\r\n    cmds.lockNode(node, lock = False)\r\n<\/pre>\n<p>then we can delete them with:<\/p>\n<pre class=\"lang:python decode:true \" >\r\nfor node in unknownNodes:\r\n    cmds.delete(node)\r\n<\/pre>\n<p>No bringing it all together in one script:<\/p>\n<pre class=\"lang:python decode:true \" >import maya.cmds as cmds\r\nunknownNodes = cmds.ls(type = 'unknown')\r\nfor node in unknownNodes:\r\n    print 'deleting: ' + node\r\n    cmds.lockNode(node, lock = False)\r\n    cmds.delete(node)\r\n<\/pre>\n<p>And there you have it! No longer shall you be plagued by errors on boot up :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve recently found myself working in files with which a co-worker has used a plugin which I don&#8217;t have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I&#8217;ve developed a solution: Find and delete said nodes!&#8230;.. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-maya"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"I&#039;ve recently found myself working in files with which a co-worker has used a plugin which I don&#039;t have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I&#039;ve developed a solution: Find and delete said nodes!.....\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alastair\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/alrichardson.com\/?p=214\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Alastair R | Technical Artist \/ Technical Animator \/ Problem Solver \/ Workflow Builder\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Removing unknown nodes from your scene | Alastair R\" \/>\n\t\t<meta property=\"og:description\" content=\"I&#039;ve recently found myself working in files with which a co-worker has used a plugin which I don&#039;t have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I&#039;ve developed a solution: Find and delete said nodes!.....\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/alrichardson.com\/?p=214\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-08-09T10:37:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-08-09T10:38:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Removing unknown nodes from your scene | Alastair R\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I&#039;ve recently found myself working in files with which a co-worker has used a plugin which I don&#039;t have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I&#039;ve developed a solution: Find and delete said nodes!.....\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#article\",\"name\":\"Removing unknown nodes from your scene | Alastair R\",\"headline\":\"Removing unknown nodes from your scene\",\"author\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/alrichardson.com\\\/wp-content\\\/uploads\\\/2016\\\/08\\\/errors.png\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214\\\/#articleImage\",\"width\":448,\"height\":145},\"datePublished\":\"2016-08-09T20:37:19+10:00\",\"dateModified\":\"2016-08-09T20:38:56+10:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#webpage\"},\"articleSection\":\"Maya\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/alrichardson.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?cat=3#listItem\",\"name\":\"Maya\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?cat=3#listItem\",\"position\":2,\"name\":\"Maya\",\"item\":\"https:\\\/\\\/alrichardson.com\\\/?cat=3\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#listItem\",\"name\":\"Removing unknown nodes from your scene\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#listItem\",\"position\":3,\"name\":\"Removing unknown nodes from your scene\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?cat=3#listItem\",\"name\":\"Maya\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/#organization\",\"name\":\"Alastair R\",\"description\":\"Technical Artist \\\/ Technical Animator \\\/ Problem Solver \\\/ Workflow Builder\",\"url\":\"https:\\\/\\\/alrichardson.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?author=2#author\",\"url\":\"https:\\\/\\\/alrichardson.com\\\/?author=2\",\"name\":\"Alastair\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/686377a6142e92739b67c0dce993cfd6876af9d2f22fbd49f75483da7fe629d9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Alastair\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#webpage\",\"url\":\"https:\\\/\\\/alrichardson.com\\\/?p=214\",\"name\":\"Removing unknown nodes from your scene | Alastair R\",\"description\":\"I've recently found myself working in files with which a co-worker has used a plugin which I don't have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I've developed a solution: Find and delete said nodes!.....\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?p=214#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/?author=2#author\"},\"datePublished\":\"2016-08-09T20:37:19+10:00\",\"dateModified\":\"2016-08-09T20:38:56+10:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/alrichardson.com\\\/#website\",\"url\":\"https:\\\/\\\/alrichardson.com\\\/\",\"name\":\"Alastair R\",\"description\":\"Technical Artist \\\/ Technical Animator \\\/ Problem Solver \\\/ Workflow Builder\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/alrichardson.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Removing unknown nodes from your scene | Alastair R","description":"I've recently found myself working in files with which a co-worker has used a plugin which I don't have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I've developed a solution: Find and delete said nodes!.....","canonical_url":"https:\/\/alrichardson.com\/?p=214","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alrichardson.com\/?p=214#article","name":"Removing unknown nodes from your scene | Alastair R","headline":"Removing unknown nodes from your scene","author":{"@id":"https:\/\/alrichardson.com\/?author=2#author"},"publisher":{"@id":"https:\/\/alrichardson.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/alrichardson.com\/wp-content\/uploads\/2016\/08\/errors.png","@id":"https:\/\/alrichardson.com\/?p=214\/#articleImage","width":448,"height":145},"datePublished":"2016-08-09T20:37:19+10:00","dateModified":"2016-08-09T20:38:56+10:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/alrichardson.com\/?p=214#webpage"},"isPartOf":{"@id":"https:\/\/alrichardson.com\/?p=214#webpage"},"articleSection":"Maya"},{"@type":"BreadcrumbList","@id":"https:\/\/alrichardson.com\/?p=214#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/alrichardson.com#listItem","position":1,"name":"Home","item":"https:\/\/alrichardson.com","nextItem":{"@type":"ListItem","@id":"https:\/\/alrichardson.com\/?cat=3#listItem","name":"Maya"}},{"@type":"ListItem","@id":"https:\/\/alrichardson.com\/?cat=3#listItem","position":2,"name":"Maya","item":"https:\/\/alrichardson.com\/?cat=3","nextItem":{"@type":"ListItem","@id":"https:\/\/alrichardson.com\/?p=214#listItem","name":"Removing unknown nodes from your scene"},"previousItem":{"@type":"ListItem","@id":"https:\/\/alrichardson.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/alrichardson.com\/?p=214#listItem","position":3,"name":"Removing unknown nodes from your scene","previousItem":{"@type":"ListItem","@id":"https:\/\/alrichardson.com\/?cat=3#listItem","name":"Maya"}}]},{"@type":"Organization","@id":"https:\/\/alrichardson.com\/#organization","name":"Alastair R","description":"Technical Artist \/ Technical Animator \/ Problem Solver \/ Workflow Builder","url":"https:\/\/alrichardson.com\/"},{"@type":"Person","@id":"https:\/\/alrichardson.com\/?author=2#author","url":"https:\/\/alrichardson.com\/?author=2","name":"Alastair","image":{"@type":"ImageObject","@id":"https:\/\/alrichardson.com\/?p=214#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/686377a6142e92739b67c0dce993cfd6876af9d2f22fbd49f75483da7fe629d9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Alastair"}},{"@type":"WebPage","@id":"https:\/\/alrichardson.com\/?p=214#webpage","url":"https:\/\/alrichardson.com\/?p=214","name":"Removing unknown nodes from your scene | Alastair R","description":"I've recently found myself working in files with which a co-worker has used a plugin which I don't have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I've developed a solution: Find and delete said nodes!.....","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/alrichardson.com\/#website"},"breadcrumb":{"@id":"https:\/\/alrichardson.com\/?p=214#breadcrumblist"},"author":{"@id":"https:\/\/alrichardson.com\/?author=2#author"},"creator":{"@id":"https:\/\/alrichardson.com\/?author=2#author"},"datePublished":"2016-08-09T20:37:19+10:00","dateModified":"2016-08-09T20:38:56+10:00"},{"@type":"WebSite","@id":"https:\/\/alrichardson.com\/#website","url":"https:\/\/alrichardson.com\/","name":"Alastair R","description":"Technical Artist \/ Technical Animator \/ Problem Solver \/ Workflow Builder","inLanguage":"en-US","publisher":{"@id":"https:\/\/alrichardson.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"Alastair R | Technical Artist \/ Technical Animator \/ Problem Solver \/ Workflow Builder","og:type":"article","og:title":"Removing unknown nodes from your scene | Alastair R","og:description":"I've recently found myself working in files with which a co-worker has used a plugin which I don't have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I've developed a solution: Find and delete said nodes!.....","og:url":"https:\/\/alrichardson.com\/?p=214","article:published_time":"2016-08-09T10:37:19+00:00","article:modified_time":"2016-08-09T10:38:56+00:00","twitter:card":"summary","twitter:title":"Removing unknown nodes from your scene | Alastair R","twitter:description":"I've recently found myself working in files with which a co-worker has used a plugin which I don't have. Said plugin has created nodes which my version of Maya does not recognize, so on load I get the classic error raised : Through dealing with this I've developed a solution: Find and delete said nodes!....."},"aioseo_meta_data":{"post_id":"214","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:24:41","updated":"2025-06-04 06:10:45","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/alrichardson.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/alrichardson.com\/?cat=3\" title=\"Maya\">Maya<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRemoving unknown nodes from your scene\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/alrichardson.com"},{"label":"Maya","link":"https:\/\/alrichardson.com\/?cat=3"},{"label":"Removing unknown nodes from your scene","link":"https:\/\/alrichardson.com\/?p=214"}],"_links":{"self":[{"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alrichardson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=214"}],"version-history":[{"count":2,"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/alrichardson.com\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/alrichardson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alrichardson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alrichardson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}