Hi Max,

It looks like OIIO does not currently provide a way to pass in a cccid string 
to identify which CDL to use from a file format that is designed to contain 
multiple CDLs (which in the case of OCIO would be either .cdl or .ccc).

One workaround would be to store only one CDL per file and to store it in a 
file format such as the .cc format or the Academy/ASC Common LUT Format (.clf). 
 In those cases, no cccid parameter is needed so they should work in OIIO.  
Examples of CDLs in the .cc and .clf formats may be found in the OCIO test 
files:
https://github.com/AcademySoftwareFoundation/OpenColorIO/tree/main/tests/data/files

best,

Doug Walker


> I'm trying to apply cdl using the --ociofiletransform flag. Ocio itself 
> supports this, but only if the method gets passed an id
> along with the file. The attribute options right now in oiiotool don't allow 
> that, so i get this error:

> oiiotool ERROR: -ociofiletransform : The transform file: test.cdl failed 
> while building ops with this error: You must
> specify a valid cccid to load from the ccc file (either by name or index). 
> id='' is not found in the file, and is not parsable
> as an integer index

_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to