mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
local render
This commit is contained in:
parent
7356920f21
commit
8ab05e7701
3 changed files with 5 additions and 7 deletions
|
|
@ -125,7 +125,7 @@ class SubmitDependentImageSequenceJobDeadline(pyblish.api.InstancePlugin):
|
||||||
hosts = ["fusion", "maya", "nuke"]
|
hosts = ["fusion", "maya", "nuke"]
|
||||||
|
|
||||||
families = [
|
families = [
|
||||||
"render",
|
"render.deadline",
|
||||||
"renderlayer",
|
"renderlayer",
|
||||||
"imagesequence"
|
"imagesequence"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ class CollectNukeWrites(pyblish.api.ContextPlugin):
|
||||||
"outputDir": os.path.dirname(nuke.filename(node)),
|
"outputDir": os.path.dirname(nuke.filename(node)),
|
||||||
"ext": ext, # todo: should be redundant
|
"ext": ext, # todo: should be redundant
|
||||||
"label": label,
|
"label": label,
|
||||||
"families": ["render"],
|
"families": ["render.local"],
|
||||||
"family": "write",
|
"family": "write",
|
||||||
"publish": value,
|
"publish": value,
|
||||||
"collection": collection,
|
"collection": collection,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class NukeRenderLocal(pyblish.api.InstancePlugin):
|
||||||
order = pyblish.api.ExtractorOrder
|
order = pyblish.api.ExtractorOrder
|
||||||
label = "Render Local"
|
label = "Render Local"
|
||||||
hosts = ["nuke"]
|
hosts = ["nuke"]
|
||||||
families = ["write", "render.local"]
|
families = ["render.local"]
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
|
|
||||||
|
|
@ -38,11 +38,9 @@ class NukeRenderLocal(pyblish.api.InstancePlugin):
|
||||||
self.log.info("End frame: {}".format(last_frame))
|
self.log.info("End frame: {}".format(last_frame))
|
||||||
|
|
||||||
# Render frames
|
# Render frames
|
||||||
result = nuke.execute(
|
nuke.execute(
|
||||||
node_subset_name,
|
node_subset_name,
|
||||||
int(first_frame),
|
int(first_frame),
|
||||||
int(last_frame)
|
int(last_frame)
|
||||||
)
|
)
|
||||||
|
self.log.info('Finished render')
|
||||||
if not result:
|
|
||||||
raise RuntimeError("Comp render failed")
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue