local render

This commit is contained in:
Jakub Jezek 2018-11-30 10:49:38 +01:00
parent 7356920f21
commit 8ab05e7701
3 changed files with 5 additions and 7 deletions

View file

@ -78,7 +78,7 @@ class CollectNukeWrites(pyblish.api.ContextPlugin):
"outputDir": os.path.dirname(nuke.filename(node)),
"ext": ext, # todo: should be redundant
"label": label,
"families": ["render"],
"families": ["render.local"],
"family": "write",
"publish": value,
"collection": collection,

View file

@ -14,7 +14,7 @@ class NukeRenderLocal(pyblish.api.InstancePlugin):
order = pyblish.api.ExtractorOrder
label = "Render Local"
hosts = ["nuke"]
families = ["write", "render.local"]
families = ["render.local"]
def process(self, instance):
@ -38,11 +38,9 @@ class NukeRenderLocal(pyblish.api.InstancePlugin):
self.log.info("End frame: {}".format(last_frame))
# Render frames
result = nuke.execute(
nuke.execute(
node_subset_name,
int(first_frame),
int(last_frame)
)
if not result:
raise RuntimeError("Comp render failed")
self.log.info('Finished render')