opencolorio_config_aces.conversion_path#

opencolorio_config_aces.conversion_path(graph: Any, source: str, target: str) list[tuple[str, str]][source]#

Return the conversion path from the source node to the target node in the aces-dev conversion graph.

Parameters:
  • graph (DiGraph) – aces-dev conversion graph.

  • source (unicode) – Source node.

  • target (unicode) – Target node.

Returns:

Conversion path from the source node to the target node.

Return type:

list

Examples

>>> ctl_transforms = classify_aces_ctl_transforms(
...     discover_aces_ctl_transforms())
>>> graph = build_aces_conversion_graph(ctl_transforms)
>>> conversion_path(graph, "CSC/Venice_SLog3_SGamut3", "Output/Rec709-D65_100nit_in_Rec709-D65_sRGB-Piecewise")
[('CSC/Venice_SLog3_SGamut3', 'ACES2065-1'), ('ACES2065-1', 'Output/Rec709-D65_100nit_in_Rec709-D65_sRGB-Piecewise')]