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 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 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.
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. |
[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. |