[Maya] Non-deletable node '{Node Name}' cannot be deleted


I’m importing an FBX file from 3DS Max to Maya.
For some reason, I am unable to delete a nondefault layer. You can see an illustration of the problem here:

So far I have tried the following solution but still failed
A) Selecting the layer directly (through MEL) and deleting it
B) Unlocking the node as suggested by this thread

I understand that you can’t delete default objects say deleting lambert1 but again the layer I am trying to delete is nondefault.

You can check the illustration file here:

Is there a way around this?

Thank you for looking at my problem.

It seems that somehow while importing Maya’s “defaultLayer” gets renamed and unhidden to in your case “studio_layer”?

1 Like

Hello, somehow the layer ‘studio_layer’ has essentially taken the defaultLayer’s spot in the file and the defaultLayer is missing. You can see this by selecting the layerManager - cmds.select(‘layerManager’) and notice that studio_setup is in the primary spot for the enum, and there isn’t a default layer in the list.

How this file got to this place I am uncertain. If you want to delete the node you need to recreate the defaultLayer, the easiest way I know of to do that is to import this scene in instead of opening it making sure your import options have the Merge into selected namespace and rename incoming objects that match as the namespace option.

1 Like

@JesseFK and @KritterSG

Thanks for the response.
This solution works as expected: import this scene in instead of opening it making sure your import options have the Merge

Thanks again. Have a great day ahead!

another way to reset the file without importing it, is deleting these lines from the maya ascii file:

createNode displayLayer -n “studio_setup”;
rename -uid “9A8A19D4-4630-1EC4-7BE3-DA9BFA7B63D7”;
setAttr “.e” no;
setAttr “.v” no;
setAttr “.c” 4;
setAttr “.do” 1;

it will fix the scene and recreate the default layer for you, it can prevent some additional unwanted info in your scene

1 Like


Interesting. So that’s what they mean when they said “You can modify the ascii file to solve problems”.
Thanks for the alternative solution!