mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
places using anatomy templates are awared about categories
This commit is contained in:
parent
b40d734a3b
commit
9bf5859f67
31 changed files with 148 additions and 217 deletions
|
|
@ -70,7 +70,9 @@ class OpenTaskPath(LauncherAction):
|
|||
data = get_template_data(project_entity, folder_entity, task_entity)
|
||||
|
||||
anatomy = Anatomy(project_name)
|
||||
workdir = anatomy.templates_obj["work"]["folder"].format(data)
|
||||
workdir = anatomy.get_template(
|
||||
"work", "default", "folder"
|
||||
).format(data)
|
||||
|
||||
# Remove any potential un-formatted parts of the path
|
||||
valid_workdir = self._find_first_filled_path(workdir)
|
||||
|
|
@ -85,7 +87,9 @@ class OpenTaskPath(LauncherAction):
|
|||
return valid_workdir
|
||||
|
||||
data.pop("task", None)
|
||||
workdir = anatomy.templates_obj["work"]["folder"].format(data)
|
||||
workdir = anatomy.get_template(
|
||||
"work", "default", "folder"
|
||||
).format(data)
|
||||
valid_workdir = self._find_first_filled_path(workdir)
|
||||
if valid_workdir:
|
||||
# Normalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue