May 3, 2013

Unlock Nodes Script

You can't delete something because it was duplicated from a referenced object and now it's locked. How do you unlock it? Maya doesn't have a any way to do this without using a script.

Here's a simple script to unlock these pesky bastards.



Select the objects you want to unlock and run this:


import pymel.core as pm
for obj in pm.selected() :
    if pm.lockNode(obj,q=1,l=1)[0] :
        pm.lockNode(obj,l=0)
        print '%s unlocked.'%obj
    else :
        print '%s not locked.'%obj

3 Comments:

Caleb

Thank you good sir!

Colin S

Thanks!

neeraj

Thanks a ton!! :)

Post a Comment