When you render a frame, here's what Arnold does for file paths: Replace backslashes When Arnold loads an ass file, Arnold replaces all backslashes ( \ ) with forward slashes ( / ) Expand environment variables When Arnold uses a parameter, Arnold expands all environment variable references, which look like this: Map paths After Arnold expands environment variables, Arnold applies the path-mapping rules specified by the Arnold pathmap file. Arnold expands environment variable expansion and maps paths for: You can automatically remap paths at render time using a pathmap file. To use a pathmap The pathmap file is a json file. For example: Path mapping uses regular expressions. The general format of an entry is this: For example, this pathmap replaces all drive mappings like Arnold converts backslashes ( \ ) to forward slashes ( / ) when it loads the ASS file. Path mapping happens after that, so pathmaps never have to deal with backslashes. There can be multiple mappings for each OS:How Arnold handles paths
[MY_TEXTURE_PATH]
Setting up path mapping
ARNOLD_PATHMAP
environment variable to point a pathmap file{
"windows": { "S:/": "\\server\projects\" },
"mac": { "S:/": "/Volumes/projects/"},
"linux": {"S:/": "/mnt/projects/"}
}
{
"windows": { "regular expression": "replacement string" },
}
E:/
and S:/
with //SERVER/
{
"windows": { "[A-Z]:/": "//SERVER/" },
}
{
"windows": { "[A-Z]:": "//SERVER", "sourceimages/": "textures/"},
}