ifd_handler
¶
Hook class to handle Houdini Mantra nodes.
Designed to inherit base_render_handler
i.e. define the hook
attribute
in your project configuration settings with the following inheritance:
node_handlers.shot_step:
- node_type: ifd
node_category: Driver
hook: "{self}/node_handlers/base_export_handler.py:{self}/node_handlers/base_render_handler.py:{self}/node_handlers/ifd_handler.py"
work_template: houdini_shot_render
publish_template: houdini_shot_publish_render
extra_args:
aov_work_template: houdini_shot_work_extra_plane
aov_publish_template: houdini_shot_publish_extra_plane
dcm_work_template: houdini_shot_work_dcm
dcm_publish_template: houdini_shot_publish_dcm
dsm_work_template: houdini_shot_work_dsm
dsm_publish_template: houdini_shot_publish_dsm
ifd_work_template: houdini_shot_ifd
ifd_publish_template: houdini_shot_publish_ifd
manifest_name_template: houdini_cryptomatte_json_name
Module Contents¶
Classes¶
Node handler for mantra renders in Houdini. |
-
class
IfdNodeHandler
[source]¶ Bases:
HookBaseClass
Node handler for mantra renders in Houdini.
-
_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 – The node’s
ParmGroup
.sgtk_folder – A
hou.ParmFolderTemplate
containing sgtk parameters.
-
_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)
-
_lock_crypto_parms
(self, node, lock)[source]¶ Lock the cryptomatte 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_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.
-
_remove_sgtk_items_from_parm_group
(self, parameter_group)[source]¶ Remove all sgtk parameters from the node’s parameter template group.
- Parameters
parameter_group (ParmGroup) – The parameter group containing sgtk parameters.
-
_restore_sgtk_parms
(self, node)[source]¶ Restore any removed sgtk parameters onto the given node.
- Parameters
node – A
hou.Node
instance containing sgtk parameters.
-
_update_aov_paths
(self, node)[source]¶ Update all the aov output paths on the node.
- Parameters
node – A
hou.Node
instance.
-
_update_crypto_layer_path
(self, node, index)[source]¶ Update cryptomatte later output paths.
- Parameters
node – A
hou.Node
instance.index (int) – The index of the aov parm.
- Raises
FieldInputError
on invalid input.
-
_update_deep_paths
(self, node)[source]¶ Update the output path for deep images.
- Parameters
node – A
hou.Node
instance.
-