LockNodeState

vtool.maya_lib.attr.LockNodeState(node) This saves the lock state of the node, so that all attributes lock state can be reset after editing.
class LockNodeState(node)

This saves the lock state of the node, so that all attributes lock state can be reset after editing.

Parameters:attribute (str) – “node.attribute”
unlock()

Unlock the attribute.

lock()

Lock the attribute.

restore_initial()

Restore the initial lock state.