BigRoy's comment

This commit is contained in:
Mustafa-Zarkash 2023-09-27 19:12:56 +03:00
parent 67964bec3a
commit 61ce75f0c9
2 changed files with 8 additions and 4 deletions

View file

@ -756,7 +756,10 @@ def get_camera_from_container(container):
def update_job_var_context():
"""Validate job path to ensure it matches the settings."""
"""Update $JOB to match current context.
This will only do something if the setting is enabled in project settings.
"""
project_settings = get_current_project_settings()
job_var_settings = \
@ -796,5 +799,4 @@ def update_job_var_context():
"insufficient permissions."
)
print(" - Context changed, update $JOB respectively to "
+ job_path)
print(" - Updated $JOB to {}".format(job_path))

View file

@ -8,7 +8,9 @@ sidebar_label: Houdini
The Houdini `$JOB` path can be customized through project settings with a (dynamic) path that will be updated on context changes, e.g. when switching to another asset or task.
> If the folder does not exist on the context change it will be created by this feature so that `$JOB` will always try to point to an existing folder.
:::note
If the folder does not exist on the context change it will be created by this feature so that `$JOB` will always try to point to an existing folder.
:::
Disabling this feature will leave `$JOB` var unmanaged and thus no context update changes will occur.