Skip to content

Conversation

doug-walker
Copy link
Collaborator

When a new display is instantiated from a virtual display (for ICC profile support), the display is marked "temporary" so that it is not written if the config is serialized. This is because displays from ICC profiles are typically specific to a given workstation at a particular point in time and should not be made available for use by others.

However, now that OpenFX has OCIO support, a host application may need to serialize a config to share it with a plug-in and in this specialized situation it does make sense to serialize displays from ICC profiles.

To do this, pass "false" to the new setDisplayTemporary function on the Config class and the display, and its associated display color space, will be serialized.

The new function requires the integer index for the display. If this is not known, you may either iterate over the displays calling Config::isDisplayTemporary, or search for the index for a display name using:
int idx = config->getDisplayAllByName(displayName);

Signed-off-by: Doug Walker <[email protected]>
(cherry picked from commit f25cb6a)
Signed-off-by: Doug Walker <[email protected]>
@doug-walker doug-walker added this to the OCIO 2.5.0 milestone Aug 16, 2025
@doug-walker doug-walker requested a review from cozdas September 2, 2025 22:19
@doug-walker doug-walker merged commit 1dfa6aa into AcademySoftwareFoundation:main Sep 13, 2025
26 checks passed
@doug-walker doug-walker deleted the walker/setDispTemp branch September 13, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants