mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
🐛 fix representation creation
This commit is contained in:
parent
c028bb2a94
commit
24da47332b
1 changed files with 4 additions and 5 deletions
|
|
@ -13,12 +13,11 @@ class CollectOnlineFile(pyblish.api.InstancePlugin):
|
|||
def process(self, instance):
|
||||
file = Path(instance.data["creator_attributes"]["path"])
|
||||
|
||||
if not instance.data.get("representations"):
|
||||
instance.data["representations"] = [
|
||||
{
|
||||
instance.data["representations"].append(
|
||||
{
|
||||
"name": file.suffix.lstrip("."),
|
||||
"ext": file.suffix.lstrip("."),
|
||||
"files": file.name,
|
||||
"stagingDir": file.parent.as_posix()
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue