nuke fix review on write node

This commit is contained in:
Jakub Jezek 2021-01-20 18:07:05 +01:00
parent e9457ad8db
commit ba927f421e
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -44,7 +44,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
first_frame = int(nuke.root()["first_frame"].getValue())
last_frame = int(nuke.root()["last_frame"].getValue())
frame_length = int(last_frame - first_frame + 1)
review = instance.data["review"]
if node["use_limit"].getValue():
first_frame = int(node["first"].getValue())
@ -102,10 +101,6 @@ class CollectNukeWrites(pyblish.api.InstancePlugin):
collected_frames.insert(0, slate_frame)
representation['files'] = collected_frames
# add review if any
if review:
representation["tags"].extend(["review", "ftrackreview"])
instance.data["representations"].append(representation)
except Exception:
instance.data["representations"].append(representation)