How to unlock (delete) a locked node?

32,347 views
Skip to first unread message

Marco Vitolini Naldini

unread,
Oct 16, 2013, 8:55:09 AM10/16/13
to maya...@googlegroups.com
I'm currently working with an old scene which contains some old finalRender nodes (frEndingFRI etc.).
Because of that, I always get error warnings while loading the scene and maya won't let me save in .ma-fileformat.
When I try to delete these nodes, there is always the "Cannot delete locked node" message.
So, how do I unlock them?

Thanks,
Marco

Kiryha Krysko

unread,
Oct 16, 2013, 9:15:19 AM10/16/13
to maya...@googlegroups.com
string $gffu[] = `ls -sl`;
for ($rfo in $gffu) 
{
lockNode -lock off $rfo;
delete $rfo; 
}




--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yaleh paxton-harding

unread,
Oct 16, 2013, 9:18:05 AM10/16/13
to maya...@googlegroups.com
you could try something like this python script:

import maya.cmds as mc


######### unlock all nodes
allNodes = mc.ls()
for node in allNodes:
    mc.lockNode(node, l=False)


Fredrik Averpil

unread,
Oct 16, 2013, 11:17:15 AM10/16/13
to maya...@googlegroups.com
I once had issues with this when I was dealing with locked references that had been imported, which could not get removed via scripting from within Maya. I resorted to running an external script on the .ma file, and that solved it for me.

The script:

// Fredrik



To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.

Yaleh paxton-harding

unread,
Oct 16, 2013, 11:49:22 AM10/16/13
to maya...@googlegroups.com
It's interesting that this subject has come up. I've been using Maya since it came out, and for some reason I have never had this issue (knowingly) come up, until about a week ago. Very strange and now I see other people having this issue too. I'm sure it's not a new issue, just thought it odd..

Marco Vitolini Naldini

unread,
Oct 17, 2013, 2:11:31 AM10/17/13
to maya...@googlegroups.com
Hmmm, somehow my "thank you mail" from yesterday didn't make it through, so next try:

Hey, that was fast! 

Thanks Kiryha and Yaleh, it worked!
No more error messages are bugging me!

Thanks again,
Marco




Am 16.10.2013 17:49, schrieb Yaleh paxton-harding:
It's interesting that this subject has come up. I've been using Maya since it came out, and for some reason I have never had this issue (knowingly) come up, until about a week ago. Very strange and now I see other people having this issue too. I'm sure it's not a new issue, just thought it odd..
On Wed, Oct 16, 2013 at 11:17 AM, Fredrik Averpil <fredrik...@gmail.com> wrote:
I once had issues with this when I was dealing with locked references that had been imported, which could not get removed via scripting from within Maya. I resorted to running an external script on the .ma file, and that solved it for me.

The script:

// Fredrik

On Wed, Oct 16, 2013 at 3:18 PM, Yaleh paxton-harding <yaleh.paxt...@gmail.com> wrote:
you could try something like this python script:

import maya.cmds as mc


######### unlock all nodes
allNodes = mc.ls()
for node in allNodes:
    mc.lockNode(node, l=False)
On Wed, Oct 16, 2013 at 8:55 AM, Marco Vitolini Naldini <ma...@vitolini.de> wrote:
I'm currently working with an old scene which contains some old finalRender nodes (frEndingFRI etc.).
Because of that, I always get error warnings while loading the scene and maya won't let me save in .ma-fileformat.
When I try to delete these nodes, there is always the "Cannot delete locked node" message.
So, how do I unlock them?

Thanks,
Marco


--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yaleh paxton-harding

unread,
Oct 17, 2013, 1:47:53 PM10/17/13
to maya...@googlegroups.com
NP :)

Marco Vitolini Naldini

unread,
Oct 16, 2013, 9:27:29 AM10/16/13
to maya...@googlegroups.com
Hey, that was fast! 

Thanks Kiryha and Yaleh, it worked!
No more error messages are bugging me!

Thanks again,
Marco



Am 16.10.2013 15:18, schrieb Yaleh paxton-harding:
you could try something like this python script:

import maya.cmds as mc


######### unlock all nodes
allNodes = mc.ls()
for node in allNodes:
    mc.lockNode(node, l=False)
On Wed, Oct 16, 2013 at 8:55 AM, Marco Vitolini Naldini <ma...@vitolini.de> wrote:
I'm currently working with an old scene which contains some old finalRender nodes (frEndingFRI etc.).
Because of that, I always get error warnings while loading the scene and maya won't let me save in .ma-fileformat.
When I try to delete these nodes, there is always the "Cannot delete locked node" message.
So, how do I unlock them?

Thanks,
Marco


--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages