Community
Maya Shading, Lighting and Rendering
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya materials topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set all selected Texture files to Raw Color Space

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
3901 Views, 5 Replies

Set all selected Texture files to Raw Color Space

Hi all

 

Is there a way of changing all selected textures in the graph Hypershade, to Raw Color Space.

 

I thought about adding a Rule Priority in the Prefs, but we currently have no consistency in the file names, so am thinking of another way to change all selected textures to Raw.

 

Cheers

5 REPLIES 5
Message 2 of 6
mspeer
in reply to: Anonymous

Message 3 of 6
Anonymous
in reply to: mspeer

Hi there

 

Thanks for the link.

I can't see the Color Space option in the Attribute Spread Sheet.

 

Cheers

Message 4 of 6
mspeer
in reply to: Anonymous

Hi!

 

Yes, sorry, you are right.

 

Then the only way is to use a custom script.

You should be able to do this with a simple for-loop.

 

Example selected file nodes to-Raw:

string $fnode_selection[] = (`ls -sl`);
for ($fnode in $fnode_selection) {
    setAttr ($fnode + ".cs") -type "string" "Raw";
}

 

Example selected file nodes to-sRGB:

string $fnode_selection[] = (`ls -sl`);
for ($fnode in $fnode_selection) {
    setAttr ($fnode + ".cs") -type "string" "sRGB";
}

 

Message 5 of 6
Anonymous
in reply to: mspeer

Perfect! Both work great.

 

Thanks very much

 

Steve

Message 6 of 6
Brian_WhiteBSDAT
in reply to: mspeer

Handy little script! Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report