Re: Review: Inital pass at searchpath impl
Malcolm Humphreys <malcolmh...@...>
We've just started testing the current version of OCIO at Imageworks,Can you elaborate a little on what was confusing. * An OCIO profile is not just a single configuration file in isolation+1 to a self contained file * Consider, what would the OCIO world look like if we 'locked down' aWhat about per shot balance grades and look / creative grades, I would cry if I needed to create a zip ocio profile per shot to do this. Then re-syncing these profiles would be a nightmare. * With this model, the "single file" profile + luts representationLet me describe how I would like to see OCIO setup on a show. * central show OCIO profile describing - working/reference space - display devices - colorspace definitions - luts (relative to this profile) * show/seq/shot (cdl) balance grades as separate xml on disk * show/seq/shot (cdl/lut/spline) look / creative grades as separate files on disk I could see this setup being forked and lock at different stages of production (prepro/onset, trailer, theatrical). Onset when tech and human resources are limited, being able to setup this up with minimal hassle would be ideal. For simplicity sake you had some cdl balance grades layout like this. /job/config/ocio/balance_approved.xml /job/myseq/config/ocio/balance_approved.xml /job/myseq/someshot/config/ocio/balance_approved.xml /job/myseq/othershot/config/ocio/balance_approved.xml Your search path would be in the central config "/job/$SEQ/$SHOT/config/ocio:/job/$SEQ/config/ocio:/job/config/ocio" Changing your $SEQ and $SHOT would allow switching between grades. This is not to say that you might merge this into a more involved system when in house, maybe without using env vars. eg. a Transform plugin which picks up the approved grade from a database. I think it's important to support both ways of working. But you do want to make it possible to lock down which files are loaded relative to the profile and which use the searchpath. I agree this could causes issues. I would look at having some kind of prefix to filenames to mark them as 'only look in the resource path' this could be by prefixing the paths with an '@' eg. !<FileTransform> {src: @/lg10.spi1d} this would resolve to only paths in the resource path anything without an '@' would look through the search path (in order). * resourcepath - is relative to the profile, either embedded or on disk * searchpath - is a ':' ordered list of directories to search for file references * file references - are absolute paths / '@' in the resourcepath / or somewhere in the searchpath Want to know what's inside your .ocio.zip config? Easy, just unzip it-1 for fixed directory layout, I think it's important that this is configurable. I can't say how different places will want to setup their pipe. Configurable decision points should be left configurable ( with sensible defaults and examples ;) ). I think it's important for a process to validate the packaging of a profile. I was hoping for something like: Package up a profile $> ociopacakge source.ocio packaged.ocio This would package up all the absolute and resourcepaths into a packaged ocio profile. Package up a shot profile $> ociopackage --resolve-searchpath source.ocio packaged.ocio This would resolve the searchpath and package up any found files and these would be given '@' references in the packaged.ocio Unpack a profile $> ociopackage -x packaged.ocio ~/tmp/ I'm a lot more in favour of a single file with embedded ascii or binary blobs at the bottom. It's quite easy for someone unzip a dir remove a lut and re-zip it and circumvent any validation process. I also I think people will be checking these into version control systems (aka easy setup publish system) being able to open profiles in a text editor / web browser and reading the header would be really nice rather than having to unzip to check stuff out. I'm happy to code up a prototype of this in a branch if people are keen to see that idea. On a slighly different topic, I think it will be preferable whenCan you elaborate on this? I don't completely get what you mean, does the '@' in file reference help distinguish between local and global? .malcolm
|
|