How to enable color management?

How to enable color management?

Anonymous
Not applicable
15,130 Views
17 Replies
Message 1 of 18

How to enable color management?

Anonymous
Not applicable

After importing a .3ds file into Maya (using the Bonus Tools 3dsImport.mll plugin), I noticed the colour space was wrong on all the textures.  But when I go into the file node, the 'Color Space' drop down is greyed out and says 'Color management - OFF'.  I've gone into my preferences, and colour management is definitely enabled.  

 

I can also create a new lambert and the colour space option becomes available as usual, so it seems material specific and I guess something to do with importing a .3ds file?

 

 

0 Likes
Accepted solutions (1)
15,131 Views
17 Replies
Replies (17)
Message 2 of 18

Christoph_Schaedl
Mentor
Mentor

turn on color management in the prefs...

----------------------------------------------------------------
https://linktr.ee/cg_oglu
0 Likes
Message 3 of 18

Anonymous
Not applicable

Did you actually read my post?

I've already said "I've gone into my preferences, and colour management is definitely enabled."  And I even posted a screenshot to show that...

Message 4 of 18

Stephen.Blair
Community Manager
Community Manager

Maybe the import tool doesn't know about color management.

 

file nodes should be connected to the defaultColorMgtGlobals, like this:

 

connectAttr ":defaultColorMgtGlobals.cme" "seafloor_1.cme";
connectAttr ":defaultColorMgtGlobals.cfe" "seafloor_1.cmcf";
connectAttr ":defaultColorMgtGlobals.cfp" "seafloor_1.cmcp";
connectAttr ":defaultColorMgtGlobals.wsn" "seafloor_1.ws";

 

If those connections are not there, the color space list will be disabled in the Maya UI.

 

You can save to Maya ASCII and take a look.



// Stephen Blair
// Arnold Renderer Support
Message 5 of 18

Anonymous
Not applicable

Hi Stephen,

 

Many thanks for your reply.  I opened up the .ma file in wordPad and did a search for what you said, but nothing came up.  Is there a way to somehow enable the colour space list so I can change it in Maya? Or will I just have to assign new materials to everything?

 

Thanks

0 Likes
Message 6 of 18

Stephen.Blair
Community Manager
Community Manager
Accepted solution

Try running this MEL, and then check file179 to see if the Color Space is enabled.

 

connectAttr ":defaultColorMgtGlobals.cme" "file179.cme";
connectAttr ":defaultColorMgtGlobals.cfe" "file179.cmcf";
connectAttr ":defaultColorMgtGlobals.cfp" "file179.cmcp";
connectAttr ":defaultColorMgtGlobals.wsn" "file179.ws";


// Stephen Blair
// Arnold Renderer Support
Message 7 of 18

Anonymous
Not applicable

Amazing, that worked, thankyou!

 

If anyone else has this problem, I quickly wrote a simple script to automatically apply this to every texture in your scene (I'm not great at MEL so please correct me if I've done something wrong. Otherwise, it works well enough for me)

 

hyperShadePanelMenuCommand("hyperShadePanel1", "selectTextures");

string $texture[] = `ls -sl`;
int $size = size($texture);

for($i=0;$i,$size;++$i) {
    string $filename1 = $texture[$i] + ".cme";
    string $filename2 = $texture[$i] + ".cmcf";
    string $filename3 = $texture[$i] + ".cmcp";
    string $filename4 = $texture[$i] + ".ws";
    
    connectAttr ":defaultColorMgtGlobals.cme" $filename1;
    connectAttr ":defaultColorMgtGlobals.cfe" $filename2;
    connectAttr ":defaultColorMgtGlobals.cfp" $filename3;
    connectAttr ":defaultColorMgtGlobals.wsn" $filename4;
}
Message 8 of 18

Anonymous
Not applicable

Where do I put this in maya? New to this ty

0 Likes
Message 9 of 18

Anonymous
Not applicable

Paste it in the script editor:

 

Windows > General Editors > Script Editor

 

Make sure it is in a MEL tab, not a Python tab.  Select the entire text and hit Enter on the keyboard to run the script.

0 Likes
Message 10 of 18

Anonymous
Not applicable

Hi Stephen,

I found this solution while, and I tried it.  I'm running Maya 2020.2 on Pop_Os 20.04 on a 64 Gb Ram, Mac Pro 2012 2x Intel Xeon CPU X5680 @ 3.33GHz x 24, GPU Nvidia Geforce 1080. I attached a screenshot of the error. I thank you if you can help hell thanks if you even have the time and patience to even entertain my issue. I hope all is well. Again thank you for your help.

 

Thanks,

JC Hall

Message 11 of 18

Stephen.Blair
Community Manager
Community Manager

@Anonymous wrote:

Hi Stephen,

I found this solution while, and I tried it.  I'm running Maya 2020.2 on Pop_Os 20.04 on a 64 Gb Ram, Mac Pro 2012 2x Intel Xeon CPU X5680 @ 3.33GHz x 24, GPU Nvidia Geforce 1080. I attached a screenshot of the error. I thank you if you can help hell thanks if you even have the time and patience to even entertain my issue. I hope all is well. Again thank you for your help.

 

Thanks,

JC Hall


My MEL snippet works only for a File node named "file179"

 

You would have to replace that with the actual name of your file node.

 

Or you could try the generic script posted by emma.wright above...



// Stephen Blair
// Arnold Renderer Support
Message 12 of 18

Anonymous
Not applicable

Stephen,

 

Thank you for trying to help me. I'm not sure what file node that I need to plugin, and I tried emma's script and it was a no go as well. I'm sure it's my ignorance of Maya, so I'll keep looking around for a solution. Thank you again!

 

Sincerely,

JC Hall

0 Likes
Message 13 of 18

Stephen.Blair
Community Manager
Community Manager

Can you tell me the name, or post a screenshot of the Attribute Editor, for one node where you can change the color management?



// Stephen Blair
// Arnold Renderer Support
Message 14 of 18

Anonymous
Not applicable

Sure I have a screen shot.

0 Likes
Message 15 of 18

Anonymous
Not applicable

Here is the window showing the color management window

Message 16 of 18

Stephen.Blair
Community Manager
Community Manager

Ok, your problem is a different problem. 

This thread was about File nodes, not color management in general.

 

For your problem, check this thread:

https://forums.autodesk.com/t5/maya-forum/maya-failed-to-finalize-the-color-transform-error/td-p/751...



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 17 of 18

Anonymous
Not applicable

Thanks again!

Message 18 of 18

i.olarte
Explorer
Explorer

i fix it. just disable one of your graphics cards keep the main activated 

0 Likes