How many time did you try to delete camera in Maya’s scene and what you get is just this error??

Non-deletable node ‘perspShape’ cannot be deleted. //
Non-deletable node ‘persp’ cannot be deleted. //

I did this simple MEL  script to unlock camera node and delete it… (You must to select at least one camera object)

 

string $selection[] = `ls -selection -long`;
string $object;
for ( $object in $selection ) {
camera -e -startupCamera false $object;
lockNode -lock off $object;
delete $object;
}

 

Enjoy!

Adriano Sanna - 2023 All rights reserved.