is_locked fucntion
Posted: Thu Jul 27, 2017 5:10 pm
I am trying to use the function attr.is_locked() but i keep getting a error.
Is this no longer supported?
Code: Select all
from vtool.maya_lib import attr
cmds.polySphere(name='testSphere')
cmds.setAttr('testSphere.translate', lock=True)
attr.is_locked('testSphere.translateX')
# Error: AttributeError: file <maya console> line 5: 'module' object has no attribute 'is_locked' #