Hey @cable,
Have you had a chance to take a look at the OCIO Getting Started guide?
I think what you’re looking for is the OCIODisplay
node. The ocio_display.display
is whatever you define in your OCIO file for the display transform. Here’s an example for a default display:
elif (nodeType == "RVDisplayPipelineGroup"):
display = config.getDefaultDisplay()
result = [
{
"nodeType": "OCIODisplay",
"context": context,
"properties": {
"ocio.function" : "display",
"ocio.inColorSpace" : OCIO.Constants.ROLE_SCENE_LINEAR,
"ocio_display.view" : config.getDefaultView(display),
"ocio_display.display" : display }}]
If you’re looking for something more than default, take a look at how the view nodes are defined here:
the config
is the OCIO API to query whatever you have in your config. You can try other functions that are defined there, here’s the official docs: https://opencolorio.readthedocs.io/en/latest/api/c_config.html
Hope this helps!
Thanks,
Alexa