Getting the colour configuration from Hydra

How does one get at the colour configuration specified in the stage or layer from Hydra? A quick grep of the code shows that UsdStage::GetColorConfiguration() isn’t called from anywhere aside from the wrappers and tests.

That’s true, @anderslanglands … though with the upcoming (teaser) nanocolor integration work, the stage’s colorConfiguration and colorManagementSystem will no longer be germaine to anything other than post-rendering display transformations, such as those applied by usdview… which itself just currently assumes OCIO and reads the OCIO env vars for configuration…

Right. In our case we need to do the display transform “in render”, so having access to the config is essential. Would you be open to a PR that wired these through to Hydra?

Sure, I think maybe the scene globals scene index is the correct place? Where we store frame and other things like that.