colour_hdri.NodeMergeImageStack#

class colour_hdri.NodeMergeImageStack(*args: Any, **kwargs: Any)[source]#

Merge to HDRI the input image stack.

Methods

Return a new instance of the colour.utilities.TreeNode class.

Parameters:
  • args (Any) – Arguments.

  • kwargs (Any) – Keywords arguments.

__init__(*args: Any, **kwargs: Any) None[source]#
Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

None

Methods

__init__(*args, **kwargs)

add_input_port(name[, value, description, ...])

Add an input port with specified name and value to the node.

add_output_port(name[, value, description, ...])

Add an output port with the specified name and value to the node.

connect(source_port, target_node, target_port)

Connect the specified source port to the specified target port of another node.

disconnect(source_port, target_node, target_port)

Disconnect the specified source port from the specified target node port.

get_input(name)

Return the value of the input port with the specified name.

get_output(name)

Return the value of the output port with the specified name.

is_inner()

Determine whether the node is an inner node.

is_leaf()

Determine whether the node is a leaf node.

is_root()

Determine whether the node is a root node.

log(message[, verbosity])

Log the specified message using the specified verbosity level.

process(**kwargs)

Process the node.

remove_input_port(name)

Remove the input port with the specified name from the node.

remove_output_port(name)

Remove the output port with the specified name from the node.

render([tab_level])

Render the node and its children as a formatted tree string.

set_input(name, value)

Set the value of an input port with the specified name.

set_output(name, value)

Set the value of the output port with the specified name.

to_graphviz()

Generate a string representation for node visualisation with Graphviz.

walk_hierarchy([ascendants])

Generate a generator to walk the colour.utilities.TreeNode tree hierarchy.

Attributes

MAPPING_LOGGING_LEVEL_TO_CALLABLE

children

Getter and setter for the node children.

data

Getter and setter for the node data.

description

Getter and setter for the node description.

dirty

Getter and setter for the node's dirty state.

edges

Getter for the edges of the node.

id

Getter for the node identifier.

input_ports

Getter for the input ports of the node.

leaves

Getter for all leaf nodes in the hierarchy.

name

Getter and setter for the node name.

output_ports

Getter for the output ports of the node.

parent

Getter and setter for the node parent.

root

Getter for the root node of the tree hierarchy.

siblings

Getter for the sibling nodes at the same hierarchical level.