opencolorio_config_aces.discover_clf_transforms#

opencolorio_config_aces.discover_clf_transforms(root_directory='/home/docs/checkouts/readthedocs.org/user_builds/opencolorio-config-aces/envs/latest/lib/python3.9/site-packages/opencolorio_config_aces/clf/transforms')[source]#

Discover the CLF transform paths in given root directory: The given directory is traversed and the *.clf files are collected.

Parameters:

root_directory (unicode) – Root directory to traverse to find the CLF transforms.

Returns:

\[\begin{split}\{``directory_1'': \left[``transform_a.clf'', ``transform_b.clf''\right],\\ \ldots,\\ ``directory_n'': \left[``transform_c.clf'', ``transform_d.clf''\right]\}\end{split}\]

Return type:

dict

Examples

>>> clf_transforms = discover_clf_transforms()
>>> key = sorted(clf_transforms.keys())[0]
>>> os.path.basename(key)
'input'
>>> sorted([os.path.basename(path) for path in clf_transforms[key]])[:2]
['ARRI.Input.ARRI_LogC3_Curve_EI800.clf', 'ARRI.Input.ARRI_LogC3_EI800_to_ACES2065-1.clf']