python.tk_houdini.utils

Action manager, parameter template wrappers and graceful error decorator.

Package Contents

Classes

HoudiniActionManager

A shotgun workfiles action manager class for houdini.

Parm

Wrapper class for houdini parameter template instances.

ParmFolder

Wrapper class for houdini folder parameter template instances.

ParmGroup

Wrapper class for houdini parameter template group instances.

Functions

gracefully_error_hook_method(*called_args, **decorator_kwargs)

Wrap a hook instance method declaration to just log exception and continue.

wrap_node_parameter_group(node)

Helper function to convert a node’s parameter group into

gracefully_error_hook_method(*called_args, **decorator_kwargs)[source]

Wrap a hook instance method declaration to just log exception and continue.

Useful for when Houdini is in a state that’s likely crash/seg fault from Python exceptions raised, without providing useful stack traces i.e. during scene loading.

Parameters
  • called_args (tuple) – Arguments, if any, from the decoration syntax

  • decorator_kwargs (dict[str]) – message or default_return keyworded arguments for customising log message and return value to use when failing gracefully.

Returns

Decorator or wrapped function, depending on decorator syntax used

Return type

object

wrap_node_parameter_group(node)[source]

Helper function to convert a node’s parameter group into a ParmGroup instance.

Parameters

node – A hou.Node instance.

Returns

A ParmGroup instance.