LockState

vtool.maya_lib.attr.LockState(attribute) This saves the lock state, so that an attribute lock state can be reset after editing.
class LockState(attribute)

This saves the lock state, so that an attribute 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.