• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Set up Custom OCIO Config programmatically

New Here ,
Aug 08, 2023 Aug 08, 2023

Copy link to clipboard

Copied

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.

TOPICS
How to , Scripting , SDK

Views

346

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2023 Aug 14, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 29, 2023 Nov 29, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2023 Dec 02, 2023

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines