Skip to content

RFE: ability to load CTF / CLF from a stream #1609

Open

Description

@zachlewis

i.e., similarly to how it's possible to load an OCIO config from a stream -- as in, a string of the xml contents of a CTF / CLF.

To my knowledge, as of now, CTF and CLF have to be serialized to disk and referenced via a FileTransform before they can make their way into a Processor.

Activity

  1. remia commented on Mar 9, 2022

    @remia
    Collaborator

    I guess if we were to allow that for CLF / CTF, we should go all the way and support that for any FileTransform? In terms of code it's probably going to be the same amount of work I believe.

    I can see this as potentially useful yes, curious if you are able to share some use case for this request?

  2. zachlewis commented on Mar 10, 2022

    @zachlewis
    CollaboratorAuthor

    That's a good point, re: support for any FileTransform.

    The specific use-case that prompted this ticket pertains to the handling of big-assed XML files containing the contents of multiple CTF / CLF transforms, analogous to how a .ccc file contains one or more CDL color corrections. Specifically, I'm looking at parsing Autodesk SynColor catalogs for transforms and metadata, without having to serialize individual transforms to disk ephemerally for FileTransform's sake.

    More generally, an in-memory string representation provides an extremely convenient means for interfacing with / validating external software (example) "for free".

    I think your work on making PyOpenColorIO object instances copyable satisfies most of my other use-cases, so thanks for that!

  3. added
    Feature RequestNew addition to OCIO functionality.
    Needs DiscussionNeeds discussion before implmentation, which could result in changes, or a decision not to proceed.
    on Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestNew addition to OCIO functionality.Needs DiscussionNeeds discussion before implmentation, which could result in changes, or a decision not to proceed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions