feat(global): review workflow accepting nks host

This commit is contained in:
Jakub Jezek 2020-03-20 14:46:59 +01:00
parent 788409714a
commit bda292a64f
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3
2 changed files with 6 additions and 5 deletions

View file

@ -18,7 +18,7 @@ class ExtractBurnin(pype.api.Extractor):
label = "Extract burnins"
order = pyblish.api.ExtractorOrder + 0.03
families = ["review", "burnin"]
hosts = ["nuke", "maya", "shell"]
hosts = ["nuke", "maya", "shell", "nukestudio"]
optional = True
def process(self, instance):
@ -185,7 +185,7 @@ class ExtractBurnin(pype.api.Extractor):
self.log.debug("Output: {}".format(output))
repre_update = {
"anatomy_template": "render",
"anatomy_template": repre.get("anatomy_template", "render"),
"files": movieFileBurnin,
"name": repre["name"],
"tags": [x for x in repre["tags"] if x != "delete"]

View file

@ -20,15 +20,15 @@ class ExtractReview(pyblish.api.InstancePlugin):
label = "Extract Review"
order = pyblish.api.ExtractorOrder + 0.02
families = ["review"]
hosts = ["nuke", "maya", "shell"]
hosts = ["nuke", "maya", "shell", "nukestudio"]
outputs = {}
ext_filter = []
to_width = 1920
to_height = 1080
def process(self, instance):
def process(self, instance):
output_profiles = self.outputs or {}
inst_data = instance.data
@ -170,7 +170,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
frame_start_handle = frame_start - handle_start
frame_end_handle = frame_end + handle_end
if isinstance(repre["files"], list):
if frame_start_handle != repre.get("detectedStart", frame_start_handle):
if frame_start_handle != repre.get(
"detectedStart", frame_start_handle):
frame_start_handle = repre.get("detectedStart")
# exclude handle if no handles defined