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' #