Graph#
- class pybmd.graph.Graph(graph)[source]
Bases:
object
docstring for Graph.
Methods
__init__
(graph)Applies ARRI CDL and LUT.
apply_grade_from_drx
(path[, grade_mode])Loads a still from given file path and applies grade to graph.
get_lut
(node_index)Gets relative LUT path based on the node index provided
get_node_cache_mode
(node_index)Gets the cache mode type on the node.
get_node_label
(node_index)Returns the label of the node at nodeIndex.
Returns the number of nodes in the graph
get_tools_in_node
(node_index)Returns toolsList (list of strings) of the tools used in the node indicated by given nodeIndex (int).
Resets all grades in the graph.
set_lut
(node_index, lut_path)Sets LUT on the node mapping the node index provided :param node_index: 1 <= nodeIndex <= self.GetNumNodes().
set_node_cache_mode
(node_index, cache_value)Sets the cache mode type on the node.
set_node_enabled
(node_index, is_enable)Sets the node at the given nodeIndex (int) to isEnabled (bool).
- get_num_nodes() int [source]
Returns the number of nodes in the graph
- Returns:
number of nodes in the graph
- Return type:
- set_lut(node_index: int, lut_path: str) bool [source]
Sets LUT on the node mapping the node index provided :param node_index: 1 <= nodeIndex <= self.GetNumNodes(). :type node_index: int :param lut_path: The lutPath can be an absolute path, or a relative path (based off custom LUT paths or the master LUT path). :type lut_path: str
- get_tools_in_node(node_index: int) List[str] [source]
Returns toolsList (list of strings) of the tools used in the node indicated by given nodeIndex (int).
- set_node_enabled(node_index: int, is_enable: bool) bool [source]
Sets the node at the given nodeIndex (int) to isEnabled (bool).
- set_node_cache_mode(node_index: int, cache_value: int) bool [source]
Sets the cache mode type on the node.
- Parameters:
- Returns:
True if successful, False otherwise
- Return type:
- apply_grade_from_drx(path: str, grade_mode: int = 0) bool [source]
Loads a still from given file path and applies grade to graph.