mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
Merge pull request #28 from aardschok/REN-0011b
Fix REN-11, post live test
This commit is contained in:
commit
199c201756
2 changed files with 13 additions and 1 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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__()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue