mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
store taskt types to instance data and use if for subset group profiles
This commit is contained in:
parent
5b2f00be72
commit
1d8a2e2c0c
1 changed files with 4 additions and 1 deletions
|
|
@ -184,6 +184,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
) or {}
|
||||
task_info = asset_tasks.get(task_name) or {}
|
||||
task_type = task_info.get("type")
|
||||
instance.data["task_type"] = task_type
|
||||
|
||||
# Fill family in anatomy data
|
||||
anatomy_data["family"] = instance.data.get("family")
|
||||
|
|
@ -805,10 +806,12 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
instance.data["anatomyData"]["task"]
|
||||
or io.Session["AVALON_TASK"]
|
||||
)
|
||||
task_type = instance.data["task_type"]
|
||||
filtering_criteria = {
|
||||
"families": instance.data["family"],
|
||||
"hosts": instance.context.data["hostName"],
|
||||
"tasks": task_name
|
||||
"tasks": task_name,
|
||||
"task_types": task_type
|
||||
}
|
||||
matching_profile = filter_profiles(
|
||||
self.subset_grouping_profiles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue