Skip to content

Look parameters don't contribute to Config cache ID #1817

@michdolan

Description

@michdolan

I found this issue while working on ocioview. It appears that parameters beyond a Look's name don't contribute to the Config cache ID. Changing a look's process space and transforms produce the same cache result. For example:

>>> config = ocio.Config()
>>> config.getCacheID()
'429777eef17eb0f7c67e6d14e48d9a04:6001c324468d497f99aa06d3014798d8'
>>> config.addLook(ocio.Look("test"))
>>> config.getCacheID()
'63cee16e9b88f86dc9cdb903eae2c1e:6001c324468d497f99aa06d3014798d8'
>>> config.addLook(ocio.Look("test", transform=ocio.ExponentTransform()))
>>> config.getCacheID()
'63cee16e9b88f86dc9cdb903eae2c1e:6001c324468d497f99aa06d3014798d8'
>>> config.addLook(ocio.Look("test", processSpace="ACEScg", transform=ocio.ExponentTransform()))
>>> config.getCacheID()
'63cee16e9b88f86dc9cdb903eae2c1e:6001c324468d497f99aa06d3014798d8'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions