Skip to main content
Participant
August 8, 2023
Question

Set up Custom OCIO Config programmatically

  • August 8, 2023
  • 2 replies
  • 729 views

Hi! Thank you for seeing this post.
I would like to know if there any way to set up color management programmatically, especially for OCIO. I've search for it in scripting guides and AEGPs, but it seems they only returning data. Or maybe it still doesn't have API for that? Currently I'm working on an automated workflow, and I would like to assign the color engine to OCIO, also with a custom config path.

This topic has been closed for replies.

2 replies

Inspiring
November 29, 2023

There is a workaround that may somewhat help you (it's part of what I needed to do) - if the path to your config is going to be the same path for everything, you can create a template with the right settings and set your files to be created from that template.

However, if like me you're trying to set the values based off of variables, that part does not seem to be currently available as an option through scripting.

Justin Taylor-Hyper Brew
Community Expert
Community Expert
December 2, 2023

Nice, yea project templates is a good workaround for sure if that can suffice for your workflow

Justin Taylor-Hyper Brew
Community Expert
Community Expert
August 14, 2023

This has been highly requested recently, but still no API methos for setting OCIO settings via ExtendScript or C++, aside from enabling ACES mode with:

 

app.project.ocioConfigurationFile = 'ACES 1.2'

 

In the meantime you can try reverse engineering the prefs files if you'd like, but that will only work for new projects, not existing ones.