Autodesk Maya 2016 と sRGB

Maya 2016 では Color Space を指定する Attribute が変更されているようです。

MFn::kFileTexture
Maya 2015 以前  colorProfile  int
Maya 2016       colorSpace    string

2015

getAttr file1.cp;
// Result: 3 //

2016

getAttr file1.cp;
// Result: 0 // 
getAttr file1.cs;
// Result: sRGB //
// 2015
int cp= getAttribute( object, "cp", &stat ); // colorProfile
switch( cp ){
case 3: // sRGB
    ...
    break;
}

// 2016
bool ifr= getAttribute( object, "ifr", &stat ); // ignoreColorSpaceFileRules
if( ifr ){
    MString  cs= getAttributeMString( object, "cs", &stat ); // colorSpace
    if( cs == "sRGB" ){
        ...
    }
}

exporter でトラブルがあったのでメモ。

関連エントリ
Maya 2015 ShaderFX のノード情報を読みだしてみる
Maya 2014 の Output Window と stderr
Maya ShaderFX