Merge pull request #28 from aardschok/REN-0011b

Fix REN-11, post live test
This commit is contained in:
Wijnand Koreman 2017-10-26 16:39:39 +02:00 committed by GitHub
commit 199c201756
2 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import pyblish.api
import copy
class CollectMindbenderImageSequences(pyblish.api.ContextPlugin):
@ -44,11 +45,17 @@ class CollectMindbenderImageSequences(pyblish.api.ContextPlugin):
raise Exception("%s was not published correctly "
"(missing metadata)" % renderlayer)
metadat_instance = metadata['instance']
# For now ensure this data is ignored
for collection in collections:
instance = context.create_instance(str(collection))
self.log.info("Collection: %s" % list(collection))
data = dict(metadata["instance"], **{
# Ensure each instance gets its own unique reference to
# the source data
instance_metadata = copy.deepcopy(metadat_instance)
data = dict(instance_metadata, **{
"name": instance.name,
"family": "Image Sequences",
"families": ["colorbleed.imagesequence"],

View file

@ -88,3 +88,8 @@ def __main__():
"stored in a .JSON file")
publish_data(filepath)
# this is needed to ensure Deadline can run the script
if __name__ == '__main__':
__main__()