This is definitely right at (if not past) the limits of my knowledge about 
OCIO's APIs and the best way for ociofiletransform to work.

Can somebody spell out exactly what additional information --ociofiletransform 
needs, and then what arguments they correspond to in the underlying OCIO calls, 
and if anything needs to also change in ImageBufAlgo::ociofiletransform() or 
its internals?

Or, even better, maybe somebody else would like to step in and try to fix this? 
I know that many people, especially the new TSC members, are looking for ways 
to contribute to OIIO (and I sure am looking for a way to not have myself 
necessary for every last issue or change), and this has "good first issue" 
written all over it -- it seems like a fairly localized fix.

I feel like I need some kind of code word I can use as a shorthand for "I swear 
I have no special knowledge that would make me better or faster at fixing this 
problem than anybody else who is vaguely familiar with the project. Somebody 
else should take this opportunity to learn to fish today."

Pineapple! Pineapple!

        -- lg


> On Jun 1, 2023, at 1:46 PM, Doug Walker <doug.wal...@autodesk.com> wrote:
> 
> 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 <mailto:Oiio-dev@lists.openimageio.org>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

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

Reply via email to