I'm trying to set up predefined render setting in maya using python. In the Render Settings window there are tabs, the first one called "Common" which includes things like "Color Management" and "File Output".
In the mental ray specific tabs, such as "Quality" I can easily change the setting with things like this
cmds.setAttr('miDefaultOptions.maxRefractionRays', 3)
cmds.setAttr('miDefaultOptions.maxShadowRayDepth', 2)
cmds.setAttr('miDefaultOptions.miSamplesMax', 2)
However, I can't do that for the "Common" tab.
Does anyone know if there's a way to set this up in Python? Specifically for Common>"Color Management".
Thanks!
You need to use defaultRenderGlobals, defaultResolution and use listAttr to see the attributes. You need to set defaultRenderGlobals.outputColorProfle or inputColorProfile depending on your color profile.