base_render_handler
¶
Base Hook for other Houdini renderer node handlers.
These include:
arnold_handler
ifd_handler
This hook is designed to inherit from base_export_handler
hook.
Module Contents¶
Classes¶
Base class for all render output nodes. |
-
class
BaseRenderNodeHandler
[source]¶ Bases:
HookBaseClass
Base class for all render output nodes.
-
_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
)
-
_enable_sgtk
(self, node, sgtk_enabled)[source]¶ Enable/disable the sgtk parameters.
- Parameters
node – A
hou.Node
instance.sgtk_enabled (bool) – The state to set the parameters to.
-
_get_multi_parm_output_paths_and_templates
(self, node, count_parm_name, use_file_parm_tmpl, file_parm_tmpl, work_template_name, publish_template_name, paths_and_templates)[source]¶ Get the output path and the templates used for the given multi parms.
- Parameters
node – A
hou.Node
instance.count_parm_name (str) – The name of the count parameter to query.
use_file_parm_tmpl (str) – The string template for the use file parm name.
file_parm_tmpl (str) – The string template for the file parm name.
work_template – The work
sgtk.Template
for this parm.publish_template – The publish
sgtk.Template
for this parm.paths_and_templates (list) – The current list of paths and templates to append to.
-
_get_output_paths_and_templates
(self, node)[source]¶ Go through the node’s specified parameters and get the output paths, work and publish templates.
Returns a list of dictionaries, each containing, at least: - work template - publish template - file name
and optionally: - any sequence paths - whether the output is a deep image
- Parameters
node – A
hou.Node
instance.- Return type
list(dict)
-
_get_template_fields_from
(self, node, additional_fields=None)[source]¶ Get shotgun template fields from the given node and update with any additional fields.
- Parameters
node – A
hou.Node
instance.additional_fields (dict) – Any fields to override with.
- Returns
The template fields updated with the additional_fields
-
_lock_aov_parms
(self, node, lock)[source]¶ Lock aov output path parms.
- Parameters
node – A
hou.Node
instance.lock (bool) – Lock parms if True.
-
_lock_parms
(self, node, lock)[source]¶ Lock parms on the node is shotgun is enabled.
- Parameters
node – A
hou.Node
instance.lock (bool) – Lock parms if True.
-
_populate_aov_names
(self, node, parent_parm_name, src_parm_name, dest_parm_name)[source]¶ Populate sgtk aov names from the original aov names.
-
_populate_from_fields
(self, node, fields)[source]¶ Populate the node from template fields.
- Parameters
node – A
hou.Node
instance.fields (dict) – The template fields.
-
_refresh_file_path
(self, node)[source]¶ Refresh the file paths generated by the node handler.
- Parameters
node – A
hou.Node
instance.
-
_set_up_parms
(self, node)[source]¶ Set up the given node’s parameters.
- Parameters
node – A
hou.Node
instance.
-
_update_aov_path
(self, node, index)[source]¶ Update the aov output path for the given index.
- Parameters
node – A
hou.Node
instance.index (int) – The index of the aov parm.
- Raises
FieldInputError
on invalid input.
-
_update_aov_paths
(self, node)[source]¶ Update all the aov output paths on the node.
- Parameters
node – A
hou.Node
instance.
-
_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.
-
generate_aov_path
(self, node, channel, template_name)[source]¶ Generate the file path for the given aov name.
-