Configuration Files and Environment Variables
Configuration Files
Yeti keeps your Graph Editor presets and custom node colours in configuration folders, which you can share across a studio.
Presets let you save groups of nodes and reuse them in other graphs.
When you save a preset, it's stored in the presets folder of the .yeti folder in your home directory. You can move these files anywhere and share them with others.
By default, Yeti looks for presets in your own .yeti folder. To share presets, set the YETI_CONFIG_DIRS environment variable to a semicolon-separated list of folders (on Linux too). You could organize these by team, project or department, for example. Yeti looks for presets in a presets folder inside each one.
Your own presets appear in the Graph Editor's Presets > Local menu, and those from YETI_CONFIG_DIRS in Presets > Global.
Custom node colours also use YETI_CONFIG_DIRS: Yeti looks for a colors.xml file in each folder. Colours set there override any node colours a user has saved.
Path Mapping
Yeti supports cross-platform path mapping whenever it reads a file.
Yeti doesn't change paths when it writes files.
Yeti's path mapping follows a convention similar to Arnold's.
When Yeti reads a file name, it:
- Replaces all backslashes with forward slashes.
- Expands environment variables written as
${NAME}(other forms, such as$NAMEor%NAME%, aren't expanded). - Applies the mappings in the Yeti path map file.
Yeti maps the file names:
- in Texture samplers, File nodes and Reference nodes,
- of custom feather geometry, and
- of every cache it reads.
Setting Up Path Mapping
Set the YETI_PATHMAP environment variable to a path map file, and Yeti uses it to remap paths automatically. For example:
YETI_PATHMAP = C:/Projects/OurProject/Config/yeti_path_map.json
The path map file is a JSON file with a mapping for each operating system, windows and linux. For example:
{
"windows": { "S:/": "//server/projects/" },
"linux": { "S:/": "/mnt/projects/" }
}
Each mapping is a regular expression and the string to replace it with:
{
"windows": { "regular expression": "replacement string" }
}
Backslashes are replaced with forward slashes before the mapping is applied, so write the regular expression with forward slashes.
You can add as many mappings as you need for each operating system. Yeti applies them in the order they appear in the file, and each one works on the result of the one before. For example, this maps both the drive and a folder name:
{
"windows": { "[A-Z]:": "//SERVER", "sourceimages/": "textures/" }
}
With this file, D:/proj/sourceimages/fur.tx becomes //SERVER/proj/textures/fur.tx.
Because the mappings are applied in turn, a later mapping can change a path an earlier one has already mapped. Make sure each mapping only matches the paths you mean it to.
If a mapping's replacement is a list, only its first entry is used. If a mapping isn't valid, Yeti reports an error and skips it, but still applies the others.
Environment Variables
These environment variables change how Yeti behaves. They're all optional: Yeti works without any of them set.
| Variable | Description |
|---|---|
YETI_TMP | Where Yeti stores intermediate files. When Yeti renders, it writes a temporary cache that the renderer's Yeti procedural reads to generate the fur. You'll usually want these files to go into a folder that's cleaned out often. By default, they go into a yeti/tmp folder in your Maya project. |
PEREGRINE_LOG_FILE | The full path to a log file that stores Yeti's console output. |
YETI_GEOCACHE_SIZE | The maximum amount of memory, in MB, that Yeti uses to cache geometry in Maya. The default is 512 MB. |
YETI_TEXTURECACHE_SIZE | The maximum amount of memory, in MB, that a Yeti node uses to cache textures. The default is 4096 MB. |
YETI_TEXTURECACHE_SHARED | Whether to use a single texture cache (with shared search paths) for every node. By default (0), each node or graph has its own cache; set it to 1 to share one cache. |
YETI_INTERACTIVE_LICENSE | Set it to 0 to stop Yeti checking out interactive licenses, which turns off the editing features, such as the Graph Editor and the grooming tools. Use this for departments that should only use Yeti render licenses. |
PG_IMAGE_PATH | A default search path for images and textures. Separate folders with semicolons on Windows and colons on Linux. Each folder can use ${NAME} environment variables. |
YETI_THREAD_COUNT | The number of threads Yeti uses to evaluate a graph. |
YETI_CONFIG_DIRS | A semicolon-separated list of folders where Yeti looks for presets and node colours. See Configuration Files. If it isn't set, Yeti only uses your own .yeti folder. |
YETI_PATHMAP | A JSON file used to remap file paths. |
YETI_ARNOLD_SERIAL_INIT | Yeti initializes Arnold procedurals in parallel. Set this to 1 to initialize them one at a time instead, as earlier versions did. |
YETI_MAX_SUBDIVISIONS | The maximum number of times Yeti subdivides a mesh. The default is 2, and Yeti doesn't allow more than 5. |
YETI_WARN_HIGH_SUBDIVISIONS | Set to 1 to print a warning whenever Yeti clamps a mesh's subdivision level. |
Yeti no longer loads SeExpr plugins named in the SE_EXPR_PLUGINS environment variable, as they're built for a different version of SeExpr and could crash Maya or the renderer.