Collect tool in the instance's list instead of as data

This commit is contained in:
Roy Nieterau 2018-02-09 10:30:41 +01:00
parent 9e07e963b0
commit a851e4c87f
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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"]