Home Reference Houdini Object Model hou hou.ParmTuple 

hou.ParmTuple.lock method

If an element of 'bool_values' is True, then a paramter in the tuple is locked, making its value non-editable.

lock(self, bool_values)

This function accepts a tuple of boolean values i.e., True and False. If a tuple value is True, then the parameter in the tuple at the same index is locked and made non-editable. Otherwise, it is unlocked. For example, the parameter tuple for “translation” contains Parm objects for translation along each of the axes, “tx”, “ty” and “tz”. If lock is called with the following tuple of boolean values, (True, True, False), then the parameter “tx” and “ty” will be locked and made non-editable, while “tz” will be unlocked and made editable.

This function throws a hou.ObjectWasDeleted exception if called on a node that no longer exists in Houdini, a hou.InvalidSize exception if the size of the tuple 'bool_values' does not match the size of the parameter tuple, and a hou.PermissionError if any of the parameters in the tuple are locked and non-editable.

Replaces: chlock