alembic_handler

Hook class to handle Houdini Alembic write nodes.

Designed to inherit base_cache_handler i.e. define the hook attribute in your project configuration settings with the following inheritance:

env/includes/settings/tk-houdini_node_handlers.yml
node_handlers.shot_step:
- node_type: alembic
  node_category: Driver
  hook: "{self}/node_handlers/base_export_handler.py:{self}/node_handlers/base_cache_handler.py:{self}/node_handlers/alembic_handler.py"
  work_template: houdini_shot_work_alembic_cache
  publish_template: houdini_shot_publish_alembic_cache
  extra_args:
    seq_work_template: houdini_shot_work_alembic_seq_cache
    seq_publish_template: houdini_shot_publish_alembic_seq_cache

Module Contents

Classes

AlembicNodeHandler

Node handler for alembic export nodes in houdini.

HookBaseClass[source]
class AlembicNodeHandler[source]

Bases: HookBaseClass

Node handler for alembic export nodes in houdini.

NODE_CATEGORY = Driver[source]
NODE_TYPE = alembic[source]
OUTPUT_PARM = filename[source]
SGTK_ABC_INDENTIFIER = sgtk_abc_identifier[source]
_create_sgtk_parms(self, node)[source]

Create the parameters that are going to live within the sgtk folder.

Parameters

node – A hou.Node instance.

Return type

list(hou.ParmTemplate)

_customise_parameter_group(self, node, parameter_group, sgtk_folder)[source]

Here is where you define where the sgtk folder is to be placed, but also any other parameters that you wish to add to the node.

Parameters
  • node – A hou.Node instance.

  • parameter_group (utils.ParmGroup) – The node’s utils.ParmGroup.

  • sgtk_folder – A hou.ParmFolderTemplate containing sgtk parameters.

_populate_from_fields(self, node, fields)[source]

Populate the node from template fields.

Parameters
  • node – A hou.Node instance.

  • fields (dict) – The template fields.

_remove_sgtk_items_from_parm_group(self, parameter_group)[source]

Remove all sgtk parameters from the node’s parameter template group.

Parameters

parameter_group (utils.ParmGroup) – The parameter group containing sgtk parameters.

_update_template_fields(self, node, fields)[source]

Update template fields from the node’s parameter values.

Parameters
  • node – A hou.Node instance.

  • fields (dict) – Template fields.