mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
get task type from asset document
This commit is contained in:
parent
ef4d459a53
commit
8cae291abb
1 changed files with 8 additions and 0 deletions
|
|
@ -177,6 +177,14 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
# Just set 'task_name' variable to context task
|
||||
task_name = anatomy_data["task"]
|
||||
|
||||
# Find task type for current task name
|
||||
# - this should be already prepared on instance
|
||||
asset_tasks = (
|
||||
asset_entity.get("data", {}).get("tasks")
|
||||
) or {}
|
||||
task_info = asset_tasks.get(task_name) or {}
|
||||
task_type = task_info.get("type")
|
||||
|
||||
# Fill family in anatomy data
|
||||
anatomy_data["family"] = instance.data.get("family")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue