opencolorio_config_aces.filter_nodes#

opencolorio_config_aces.filter_nodes(graph, filterers=None)[source]#

Filter given aces-dev conversion graph nodes with given filterers.

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

  • filterers (array_like, optional) – List of callables used to filter the ACES CTL transforms, each callable takes an ACES CTL transform as argument and returns whether to include or exclude the ACES CTL transform as a bool.

Returns:

Filtered aces-dev conversion graph nodes.

Return type:

list

Examples

>>> ctl_transforms = classify_aces_ctl_transforms(
...     discover_aces_ctl_transforms())
>>> graph = build_aces_conversion_graph(ctl_transforms)
>>> sorted(filter_nodes(graph, [lambda x: x.genus == 'p3']))[0]
'InvRRTODT/P3D65_1000nits_15nits_ST2084'