mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #1554 from ynput/enhancement/315-yn-0210-conditional-houdini-template-selection-based-on-asset-folder
Workfile template builder: Consider Folder in filtering
This commit is contained in:
commit
1f3209698e
1 changed files with 14 additions and 4 deletions
|
|
@ -840,14 +840,24 @@ class AbstractTemplateBuilder(ABC):
|
|||
host_name = self.host_name
|
||||
task_name = self.current_task_name
|
||||
task_type = self.current_task_type
|
||||
folder_path = self.current_folder_path
|
||||
folder_type = None
|
||||
folder_entity = self.current_folder_entity
|
||||
if folder_entity:
|
||||
folder_type = folder_entity["folderType"]
|
||||
|
||||
filter_data = {
|
||||
"task_types": task_type,
|
||||
"task_names": task_name,
|
||||
"folder_types": folder_type,
|
||||
"folder_paths": folder_path,
|
||||
}
|
||||
|
||||
build_profiles = self._get_build_profiles()
|
||||
profile = filter_profiles(
|
||||
build_profiles,
|
||||
{
|
||||
"task_types": task_type,
|
||||
"task_names": task_name
|
||||
}
|
||||
filter_data,
|
||||
logger=self.log
|
||||
)
|
||||
if not profile:
|
||||
raise TemplateProfileNotFound((
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue