The OpenColorIO color-space assignment rules automatically assign an initial color space to input image files based on string patterns in their file names or paths. You can edit the rules to match the color spaces and file-naming conventions that you typically use. Image-based textures get converted from the assigned input space to the rendering space for shading calculations. When you specify an image to use as a texture in a scene, you can always set its color space manually if the automatically-assigned color space is incorrect.
A rule's name is used for identification only. It gets shown in the Select Bitmap Image File dialog and other places to indicate which rule was responsible for assigning a color space automatically. Each name must be unique.
Whenever the rules change, any existing textures whose color space was set to Automatic get re-assigned as appropriate. Textures whose color space was set manually do not change.
To edit a basic rule, enter strings to match in the Pattern and Extension columns using glob syntax. Set Pattern to * if you want a rule to consider only the extension, or set Extension to * if you want a rule to consider only a file's path and name.
The following table summarizes the glob syntax used for matching strings:
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. |
You can share rules between scenes by exporting them from one scene and then importing them into others. The scenes should use the same config, or at least the automatically-assigned color spaces should exist with the same names in all configs used by the scenes. If an imported rule refers to a color space that is not defined in the current config, the automatically-assigned space is set to the default space and messages appear on the Color Management tab of the Render Message Window.
As an alternative to these procedures, you can set up all of the color-management settings and then click Save As System Defaults. In this way, all settings including the rules are used by new scenes. Then to import the rules and all other settings into an existing scene, open the scene and click Load System Defaults.
Note that if you want to use the new file as a config on its own rather than simply as a container for transferring rules, you should save it in the same folder as the current config so that the files for any externally-defined color transforms can be found at the same relative locations — this is not a requirement when using 3ds Max's built-in config because the transforms are embedded in the file.
If an imported rule refers to a color space that is not defined in the current config, the automatically-assigned space is set to the default space and messages appear on the Color Management tab of the Render Message Window.