mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
BigRoy's comment
This commit is contained in:
parent
d1395fe409
commit
30e2ecb859
2 changed files with 5 additions and 6 deletions
|
|
@ -754,11 +754,12 @@ def get_camera_from_container(container):
|
|||
return cameras[0]
|
||||
|
||||
|
||||
def validate_job_path():
|
||||
def update_job_var_context():
|
||||
"""Validate job path to ensure it matches the settings."""
|
||||
|
||||
project_settings = get_current_project_settings()
|
||||
project_settings = project_settings["houdini"]["general"]["update_job_var_context"]
|
||||
project_settings = \
|
||||
project_settings["houdini"]["general"]["update_job_var_context"]
|
||||
|
||||
if project_settings["enabled"]:
|
||||
|
||||
|
|
@ -779,5 +780,3 @@ def validate_job_path():
|
|||
hou.hscript("set JOB=" + job_path)
|
||||
os.environ["JOB"] = job_path
|
||||
print(" - set $JOB to " + job_path)
|
||||
else:
|
||||
print(" - JOB Path is disabled, Skipping Check...")
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ def on_save():
|
|||
log.info("Running callback on save..")
|
||||
|
||||
# Validate $JOB value
|
||||
lib.validate_job_path()
|
||||
lib.update_job_var_context()
|
||||
|
||||
nodes = lib.get_id_required_nodes()
|
||||
for node, new_id in lib.generate_ids(nodes):
|
||||
|
|
@ -339,7 +339,7 @@ def on_open():
|
|||
log.info("Running callback on open..")
|
||||
|
||||
# Validate $JOB value
|
||||
lib.validate_job_path()
|
||||
lib.update_job_var_context()
|
||||
|
||||
# Validate FPS after update_task_from_path to
|
||||
# ensure it is using correct FPS for the asset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue