mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge branch 'develop' into enhancement/lock-lower-pyobjc-core
This commit is contained in:
commit
933eef3584
2 changed files with 22 additions and 4 deletions
|
|
@ -983,7 +983,26 @@ def get_instance_expected_output_path(
|
||||||
"version": version
|
"version": version
|
||||||
})
|
})
|
||||||
|
|
||||||
path_template_obj = anatomy.get_template_item("publish", "default")["path"]
|
# Get instance publish template name
|
||||||
|
task_name = task_type = None
|
||||||
|
task_entity = instance.data.get("taskEntity")
|
||||||
|
if task_entity:
|
||||||
|
task_name = task_entity["name"]
|
||||||
|
task_type = task_entity["taskType"]
|
||||||
|
|
||||||
|
template_name = get_publish_template_name(
|
||||||
|
project_name=instance.context.data["projectName"],
|
||||||
|
host_name=instance.context.data["hostName"],
|
||||||
|
product_type=instance.data["productType"],
|
||||||
|
task_name=task_name,
|
||||||
|
task_type=task_type,
|
||||||
|
project_settings=instance.context.data["project_settings"],
|
||||||
|
)
|
||||||
|
|
||||||
|
path_template_obj = anatomy.get_template_item(
|
||||||
|
"publish",
|
||||||
|
template_name
|
||||||
|
)["path"]
|
||||||
template_filled = path_template_obj.format_strict(template_data)
|
template_filled = path_template_obj.format_strict(template_data)
|
||||||
return os.path.normpath(template_filled)
|
return os.path.normpath(template_filled)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -358,9 +358,8 @@ class WorkfilesToolWindow(QtWidgets.QWidget):
|
||||||
if not self._host_is_valid:
|
if not self._host_is_valid:
|
||||||
return
|
return
|
||||||
|
|
||||||
self._folders_widget.set_project_name(
|
self._project_name = self._controller.get_current_project_name()
|
||||||
self._controller.get_current_project_name()
|
self._folders_widget.set_project_name(self._project_name)
|
||||||
)
|
|
||||||
|
|
||||||
def _on_save_as_finished(self, event):
|
def _on_save_as_finished(self, event):
|
||||||
if event["failed"]:
|
if event["failed"]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue