Merge branch 'develop' of bitbucket.org:pypeclub/pype into develop

This commit is contained in:
Jakub Jezek 2019-08-06 12:09:51 +02:00
commit b8f3aa0561
10 changed files with 154 additions and 40 deletions

View file

@ -7,7 +7,7 @@ class RemoveOutputNode(pyblish.api.ContextPlugin):
"""
label = 'Output Node Remove'
order = pyblish.api.IntegratorOrder
order = pyblish.api.IntegratorOrder + 0.4
families = ["workfile"]
hosts = ['nuke']

View file

@ -11,7 +11,7 @@ class RepairCollectionAction(pyblish.api.Action):
icon = "wrench"
def process(self, context, plugin):
self.log.info(context[0][1])
self.log.info(context[0][0])
files_remove = [os.path.join(context[0].data["outputDir"], f)
for r in context[0].data.get("representations", [])
for f in r.get("files", [])
@ -20,7 +20,7 @@ class RepairCollectionAction(pyblish.api.Action):
for f in files_remove:
os.remove(f)
self.log.debug("removing file: {}".format(f))
context[0][1]["render"].setValue(True)
context[0][0]["render"].setValue(True)
self.log.info("Rendering toggled ON")