Skip to main content
Participant
February 10, 2022
Question

Problem Creating a New Project through Python, doesn't respect new project settings

  • February 10, 2022
  • 1 reply
  • 217 views

Hello Painter Devs,

 

Is there a way to have Python be able to specify color mangement settings when creating a new project  or respect new project settings that are already set in ui?

 

I'm writing code to create a new project using Python, our pipeline needs to have Artists enable OpenColorIO with an Aces sRGB viewport (so that color match between Painter and Unreal).  I was able to set the default new project settings by modifying the registry, however when I create a new project using python it doesn't respect those settings.

 

 

This topic has been closed for replies.

1 reply

FelmersAuthor
Participant
February 11, 2022

I was mistaken, I didn't have the OCIO environment variable set correctly (wasn't pointing to the right ocio config file)  Once I fixed this new projects created through the python API were set with the approprite color config settings!

FelmersAuthor
Participant
February 14, 2022

Having another issue...

 

The "Bitmap import color space defaults" all get set to Linear when using the OCIO environment variable, instead of what seems to be specified inside the ocio.config file

 

Is there anyway to modify the bitmap import defaults?

 

See below (ocio.config vs Painter project settings)