base_cache_handler

Base Hook for other Houdini cache output node handlers.

These include:

  • alembic_handler

  • geometry_handler

This hook is designed to inherit from base_export_handler hook.

Module Contents

Classes

BaseCacheNodeHandler

Base class for any cache export nodes.

HookBaseClass[source]
class BaseCacheNodeHandler[source]

Bases: HookBaseClass

Base class for any cache export nodes.

SGTK_SINGLE_FRAME = sgtk_single_frame[source]
_build_single_file_parm(self, default)[source]

Build a template for the single file parm.

Parameters

default (bool) – The default check state of the parm.

Returns

A hou.ToggleParmTemplate instance.

_get_template_for_file_path(self, node, file_path)[source]

Get the template for the given file path. For the most part, this will liekly be the work_template.

Parameters
  • node – A hou.Node instance.

  • file_path (str) – The file path the check against.

Return type

sgtk.Template

_is_single_frame(self, node)[source]

Check if the output is a single file or a sequence.

Parameters

node – A hou.Node instance.

Return type

bool

_populate_from_fields(self, node, fields)[source]

Populate the node from template fields.

Parameters
  • node – A hou.Node instance.

  • fields (dict) – The template fields.

get_publish_template(self, node)[source]

Get the shotgun publish template for this node handler. Sequence paths require a different template.

Parameters

node – A hou.Node instance.

Return type

An sgtk.Template instance.

get_work_template(self, node)[source]

Get the shotgun work template for this node handler. Sequence paths require a different template.

Parameters

node – A hou.Node instance.

Return type

An sgtk.Template instance.