Settings rendering and viewport colorspace on startup (python)

Settings rendering and viewport colorspace on startup (python)

jotZ9HDD
Participant Participant
711 Views
2 Replies
Message 1 of 3

Settings rendering and viewport colorspace on startup (python)

jotZ9HDD
Participant
Participant

Trying to change my rendering space and viewspace on startup in maya 2022

 

This is what i currently have in my userSetup.py - however it is not working.

import maya.utils

def color_management():
cmds.colorManagementPrefs(e=True, renderingSpaceName="scene-linear Rec.709-sRGB")
cmds.colorManagementPrefs(e=True, displayName="sRGB")
cmds.colorManagementPrefs(e=True, viewName="Un-tone-mapped")
maya.utils.executeDeferred( "color_management()" )

 

Anyone have a solution for this ?

 

0 Likes
712 Views
2 Replies
Replies (2)
Message 2 of 3

damaggio
Mentor
Mentor

You can just export a Xml file and Maya will start every time with legacy settings.Legacy_Color.jpg

0 Likes
Message 3 of 3

jotZ9HDD
Participant
Participant

Never worked with xml files before. I need this to work on every pc on the office. Is there and xml environment path i can set up to load this on all machines ? Or how would that work

0 Likes