Configuration File Processing#
Overview#
File Variables#
Whenever a configuration file is processed, a number of varibles are available. For example, when processing the file with absolute path /home/user/myws/config/anim/test-01/launch.json5
, the variables are defined as follows:
Variable |
Description |
Example |
---|---|---|
|
The file’s basename without suffix |
|
|
The filename |
|
|
The filename extension |
|
|
The file’s folder name |
|
|
The file’s parent folder name |
|
|
The path to the file |
|
|
The full file path |
|
Project Variables#
Suppose the launch file is in the path /home/user/myws/config/anim/test-01/launch.json5
,
and you are executing a render action from the Blender plugin with iRenderQuality
set to 4.
Variable |
Description |
Example |
---|---|---|
|
Main workspace path |
|
|
Main configuration path |
|
|
The current configuration path |
|
|
The output path |
|
|
The main production path |
|
|
The active production path |
|
|
The current configuration folder |
|
|
The top folder of the active production |
|
|
The relative config path |
|
|
The child path of |
|
|
Same as |
|
Note
The variable path-render
is only available for rendering related actions.
Configuration Variables#
Note
See the configuration vars/test-01
in the example workspace image-render-workspace-test
for a demo of using these variables.
Variable |
Description |
---|---|
|
The processing data & time in the format |
|
The contents of the trial configuration file |
|
The contents of the execution configuration file |
|
A dictionary with action information. See below. |
|
The relative target path for this configuration. This may not be the final output path. |
|
The absolute target path for this configuration. |
|
A dictionary of all configuration dictionaries, using the trial config id. See below. |
|
The currently processed configuration dictionary. |
The dictionary action
#
The following variables are members of the action
dictionary. For example, the variable name
in the table below, can be accessed via ${action:name}
. As another example, you can access the action parameter iFrameStart
via ${action:args:iFrameStart}
.
Variable |
Description |
---|---|
|
The action name as specified in the launch file. |
|
The action dti as specified in the launch file. |
|
The action configuration dictionary. These are not the action arguments. |
|
The action launch arguments. |
The dictionary id
#
The following variables are members of the id
dictionary. The elements of the id
dictionary are the id names used in the trial file (and declared in the manifest) to specify the configurations. For example, if your trial file specifies the capture configuration to use via the id cap
, you can access the full capture configuration dictionary via ${id:cap:value}
. The following table gives the elements available per id dictionary element.
Variable |
Description |
---|---|
|
The id string of the configuration. |
|
The relative output path for this configuration. This is not necessarily the full output path. |
|
The configuration output folder name. |
|
The configuration DTI. |
|
The actual configuration value dictionary. |
|
The configuration defined before this. |
|
The configuration defined after this. |
Instead of accessing the id dictionaries by name, there are three special names:
Variable |
Description |
---|---|
|
The current configuration |
|
The parent configuration |
|
The child configuration |
For example, to access the DTI of the current configuration you can write ${id:@this:dti}
.