mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge branch 'develop' into feature/AY-971_Use-custom-staging-dir-functions
This commit is contained in:
commit
db3a949a4b
1 changed files with 7 additions and 5 deletions
|
|
@ -413,14 +413,16 @@ class CollectAnatomyInstanceData(pyblish.api.ContextPlugin):
|
||||||
# Backwards compatible (Deprecated since 24/06/06)
|
# Backwards compatible (Deprecated since 24/06/06)
|
||||||
or instance.data.get("newAssetPublishing")
|
or instance.data.get("newAssetPublishing")
|
||||||
):
|
):
|
||||||
hierarchy = instance.data["hierarchy"]
|
folder_path = instance.data["folderPath"]
|
||||||
anatomy_data["hierarchy"] = hierarchy
|
parents = folder_path.lstrip("/").split("/")
|
||||||
|
folder_name = parents.pop(-1)
|
||||||
|
|
||||||
parent_name = project_entity["name"]
|
parent_name = project_entity["name"]
|
||||||
if hierarchy:
|
hierarchy = ""
|
||||||
parent_name = hierarchy.split("/")[-1]
|
if parents:
|
||||||
|
parent_name = parents[-1]
|
||||||
|
hierarchy = "/".join(parents)
|
||||||
|
|
||||||
folder_name = instance.data["folderPath"].split("/")[-1]
|
|
||||||
anatomy_data.update({
|
anatomy_data.update({
|
||||||
"asset": folder_name,
|
"asset": folder_name,
|
||||||
"hierarchy": hierarchy,
|
"hierarchy": hierarchy,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue