"cannot delete as it has locked or read-only children."
"cannot delete as it has locked or read-only children."
Cant find a fix to this online.
Purchased this Character rig and looking to delete everything (just a duplicated rig I have).Script editor shows for a number of character controls:
// Error: file: C:/Program Files/Autodesk/Maya2022/scripts/others/doDelete.mel line 111: Cannot delete 'MaleFullBody:MaleFullBody_ROOTGrp' as it has locked or read-only children. //"
Any advice would be appreciated
thanks
Solution:
There could be various reasons the nodes get locked.
If you can detect which node/s is/are locked, you can execute lockNode command (see the syntax examples at the bottom of the page).
For multiple selected nodes, try this (untested):
string $sel[] = `ls -sl` ; for ($s in $sel) { lockNode -l off $s ; }
If you want to unlock entire hierarchy, then select the top node and go Select>Hierarchy before script execution.
Afterwards, should be possible to delete.
Comments
Post a Comment