I need to set up preferences before Maya starts.
In particular, I wish to turn off Color Management.
I have a Python script, launched in userSetup.mel
, where I set the Maya Project, for example. If I add a code to edit color management, but it does not work in this way (although works if you run it in launched Maya from Script Editor):
pm.colorManagementPrefs(e=True, cmEnabled=False)
What is the usual way to define preferences (and color management) before Maya starts?