Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Option to keep the review files. #426

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pype/plugins/maya/create/create_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CreateReview(avalon.maya.Creator):
family = "review"
icon = "video-camera"
defaults = ['Main']
keepImages = False

def __init__(self, *args, **kwargs):
super(CreateReview, self).__init__(*args, **kwargs)
Expand All @@ -21,4 +22,6 @@ def __init__(self, *args, **kwargs):
for key, value in animation_data.items():
data[key] = value

data["keepImages"] = self.keepImages

self.data = data
7 changes: 5 additions & 2 deletions pype/plugins/maya/publish/extract_playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def process(self, instance):

preset['camera'] = camera
preset['format'] = "image"
# preset['compression'] = "qt"
preset['quality'] = 95
preset['compression'] = "png"
preset['start_frame'] = start
Expand Down Expand Up @@ -102,6 +101,10 @@ def process(self, instance):
if "representations" not in instance.data:
instance.data["representations"] = []

tags = ["review"]
if not instance.data.get("keepImages"):
tags.append("delete")

representation = {
'name': 'png',
'ext': 'png',
Expand All @@ -111,7 +114,7 @@ def process(self, instance):
"frameEnd": end,
'fps': fps,
'preview': True,
'tags': ['review', 'delete']
'tags': tags
}
instance.data["representations"].append(representation)

Expand Down
2 changes: 1 addition & 1 deletion pype/plugins/nuke/load/load_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def loader_shift(node, frame, relative=True):
class LoadSequence(api.Loader):
"""Load image sequence into Nuke"""

families = ["render2d", "source", "plate", "render", "prerender"]
families = ["render2d", "source", "plate", "render", "prerender", "review"]
representations = ["exr", "dpx", "jpg", "jpeg", "png"]

label = "Load sequence"
Expand Down