An app that handles setting up environment variables at the startup of an engine.
Supported engines: tk-houdini, tk-maya
tk-multi-environment is a ShotGrid Toolkit app that allows you to add environment values to your engine based on ShotGrid fields and templates from the current context.
SG_PROJECT_NAME: Project nameSG_PROJECT_ROOT: Project file rootSG_USER_NAME: Current usernameSG_USER_ID: Current user idSG_CONTEXT_TYPE: Current context type (Asset, Sequence, Shot)SG_CONTEXT_ID: Current context idSG_STEP: Current stepSG_NAME: File name (main)SG_VERSION: File versionSG_VERSION_S: File version as string (v{version})- Asset context:
SG_ASSET: Asset nameSG_ASSET_ROOT: Asset file root
- Sequence context:
SG_SEQUENCE: Sequence nameSG_SEQUENCE_ROOT: Sequence file root
- Shot context:
SG_SEQUENCE: Sequence nameSG_SHOT: Shot nameSG_SHOT_ROOT: Shot file root
settings.tk-multi-environment.houdini.shot_step:
work_file_template: houdini_shot_work
context_root_template: shot_root
field_variables:
- entity_type: Project
variables:
SG_PROJECT_CODE: sg_short_name
SG_FPS: sg_frame_rate
template_variables:
- name: JOB
template: shot_work_area_houdini
location: "@apps.tk-multi-environment.location"| ShotGrid version | Core version | Engine version |
|---|---|---|
| - | v0.14.37 | - |
| Name | Description | Default value |
|---|---|---|
helper_hook |
Implements helper functions. | helper_{engine_name} |
| Name | Description | Default value | Fields |
|---|---|---|---|
work_file_template |
A template for the work file path | context, version, [name] | |
context_root_template |
A template for the root directory |
| Name | Description | Default value |
|---|---|---|
field_variables |
A list of variables to apply from ShotGrid fields. | |
template_variables |
A list of variables to apply using templates. |