mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Collect tool in the instance's list instead of as data
This commit is contained in:
parent
9e07e963b0
commit
a851e4c87f
2 changed files with 3 additions and 2 deletions
|
|
@ -69,9 +69,10 @@ class CollectInstances(pyblish.api.ContextPlugin):
|
|||
"label": label,
|
||||
"families": ["colorbleed.saver"],
|
||||
"family": "colorbleed.saver",
|
||||
"tool": tool # keep link to the tool
|
||||
})
|
||||
|
||||
instance.append(tool)
|
||||
|
||||
self.log.info("Found: \"%s\" " % path)
|
||||
|
||||
# Sort/grouped by family (preserving local index)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class ExtractImageSequence(pyblish.api.Extractor):
|
|||
|
||||
# Get all output paths after render was successful
|
||||
# Note the .ID check, this is to ensure we only have savers
|
||||
instances = [i for i in context[:] if i.data["tool"].ID == "Saver"]
|
||||
instances = [i for i in context[:] if i[0].ID == "Saver"]
|
||||
for instance in instances:
|
||||
# Ensure each instance has its files for the integrator
|
||||
output_path = instance.data["path"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue