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

2 Comments:

Rookies Vs Rucos

Thanks!

Caleb

Thank you good sir!

Post a Comment