Is it possible to change color space in 'file node'?


#1

I’m using Maya 2015.
And I’d like to change color space in every ‘file node’ srgb to raw.
Is it possible using python or mel?
I only have basic knowledge of scripting. Could you please give me some tips?


#2

python:

import maya.cmds as cmds

files = cmds.ls(type='file')
for f in files:
    cmds.setAttr(f + '.colorSpace', 'Raw', type='string')

#3

It worked. Thank you so much!!!