When you add an image input such as a File texture or image plane to a scene, the Input Color Space Rules in the Color Management preferences determine the color space that is assigned initially. You can still change the color space manually in each node's attributes (see Specify the color space for textures and other image inputs).
A rule lets you automatically assign an input color space based on the file extension, the file and folder naming conventions that you use for different types of images, or both. For example, if all your diffuse color textures include "color" in their file names then you can create a rule that matches *color* and any extension to sRGB (or whatever color space the files actually use), and if all your normal maps include "normal" in their file or folder names then you can create a second rule that matches *normal* and any extension to Raw. For another example, if all your OpenEXR files are scene-linear with the sRGB primaries, you can create a rule that matches any file name (*) and the extension EXR to scene-linear Rec 709/sRGB.
If you are using the default preferences, there are some preset rules in addition to the Default rule. The tx, hdr, and exr rules assign the input space of any file with those extensions to Raw. Unlike the Default rule, these are ordinary rules that have been added for convenience, and they can be edited, deleted, and moved up or down like any other rule.
The input space specified by the Default rule is used when no other rule matches. You can only specify the input color space — you cannot specify a condition to match. The Default rule is always the last in the list and cannot be moved.
In the configuration files installed with Maya, the Default rule assigns textures to the default role — this is an alias that resolves to sRGB in those configurations.
Adds a special rule called ColorSpaceNamePathSearch. This rule is similar to the rule for assigning input spaces in OCIO v1. It assigns each texture file to the longest color-space name found anywhere in the file path. Note that matches are not case-sensitive.
This option is not available when using the legacy color management system known as SynColor. In SynColor mode, you can enable Use OCIO Input Color Space Rules instead but note that this also disables all other rules except the Default rule.
String | Pattern | Example |
---|---|---|
? | Any one character. | ?pecular matches specular and Specular, as well as Xpecular and many others. |
* | Zero or more characters. |
*diffuse matches
diffuse at the end of the path.
diffuse* matches diffuse at the beginning of the path. *diffuse* matches diffuse anywhere in the path.
Tip: Put an asterisk at the beginning of every pattern so that image files get matched in any directory.
|
[chars] | Any one of the specified characters. | *[nN]ormal* matches normal or Normal anywhere in the path. |
[char1-char2] | Any character in the range. | *[0-9] matches any path ending with a numeral. |
[!chars_or_range] | Any character except those specified. | *[!0-9] matches any path that does not end with a numeral. |
/ | Escapes the next character, that is, treats the next character as a literal, instead of part of the pattern matching syntax. | */[*/]* matches a pair of square brackets anywhere in the path. |
When you are using the legacy color management system as described in Using Maya's Legacy Color Management (SynColor) and its Use OCIO Configuration option is on, the Use OCIO Input Color Space Rules option becomes available.