fix(nuke): deadline submission of slate family

This commit is contained in:
Jakub Jezek 2020-01-15 17:46:09 +01:00
parent 96a7c4a061
commit aee72b9eac
5 changed files with 26 additions and 43 deletions

View file

@ -1520,7 +1520,6 @@ class ExporterReviewMov(ExporterReview):
write_node.setInput(0, self.previous_node)
self._temp_nodes.append(write_node)
self.log.debug("Write... `{}`".format(self._temp_nodes))
# ---------- end nodes creation
# ---------- render or save to nk

View file

@ -321,8 +321,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
"source": source,
"user": context.data["user"],
"version": context.data["version"],
"intent": context.data["intent"],
"comment": context.data["comment"],
"intent": context.data.get("intent"),
"comment": context.data.get("comment"),
# Optional metadata (for debugging)
"metadata": {
"instance": data,

View file

@ -21,21 +21,15 @@ class ExtractReviewDataMov(pype.api.Extractor):
def process(self, instance):
families = instance.data["families"]
self.log.info("Creating staging dir...")
self.log.debug(
"__ representations: `{}`".format(
instance.data["representations"]))
if "representations" in instance.data:
if instance.data["representations"] == []:
render_path = instance.data['path']
staging_dir = os.path.normpath(os.path.dirname(render_path))
instance.data["stagingDir"] = staging_dir
else:
staging_dir = instance.data[
"representations"][0]["stagingDir"].replace("\\", "/")
instance.data["representations"][0]["tags"] = []
instance.data["stagingDir"] = staging_dir
if "representations" not in instance.data:
instance.data["representations"] = list()
staging_dir = os.path.normpath(
os.path.dirname(instance.data['path']))
instance.data["stagingDir"] = staging_dir
self.log.info(
"StagingDir `{0}`...".format(instance.data["stagingDir"]))

View file

@ -35,16 +35,14 @@ class ExtractSlateFrame(pype.api.Extractor):
def render_slate(self, instance):
node = instance[0] # group node
self.log.info("Creating staging dir...")
if "representations" in instance.data:
staging_dir = instance.data[
"representations"][0]["stagingDir"].replace("\\", "/")
instance.data["stagingDir"] = staging_dir
else:
instance.data["representations"] = []
# get output path
render_path = instance.data['path']
staging_dir = os.path.normpath(os.path.dirname(render_path))
instance.data["stagingDir"] = staging_dir
if "representations" not in instance.data:
instance.data["representations"] = list()
staging_dir = os.path.normpath(
os.path.dirname(instance.data['path']))
instance.data["stagingDir"] = staging_dir
self.log.info(
"StagingDir `{0}`...".format(instance.data["stagingDir"]))

View file

@ -30,22 +30,14 @@ class ExtractThumbnail(pype.api.Extractor):
def render_thumbnail(self, instance):
node = instance[0] # group node
self.log.info("Creating staging dir...")
self.log.debug(
"_ representations `{0}`".format(instance.data["representations"]))
if "representations" in instance.data:
try:
staging_dir = instance.data[
"representations"][0]["stagingDir"].replace("\\", "/")
except IndexError:
path = instance.data["path"]
staging_dir = os.path.dirname(path)
instance.data["stagingDir"] = staging_dir
else:
instance.data["representations"] = []
# get output path
render_path = instance.data['path']
staging_dir = os.path.normpath(os.path.dirname(render_path))
instance.data["stagingDir"] = staging_dir
if "representations" not in instance.data:
instance.data["representations"] = list()
staging_dir = os.path.normpath(
os.path.dirname(instance.data['path']))
instance.data["stagingDir"] = staging_dir
self.log.info(
"StagingDir `{0}`...".format(instance.data["stagingDir"]))