mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Option to keep the review files.
- Disabled by default to maintain backwards compatibility. - Open loading review image sequences into Nuke.
This commit is contained in:
parent
c57086b13d
commit
14093da98f
3 changed files with 8 additions and 3 deletions
|
|
@ -21,4 +21,6 @@ class CreateReview(avalon.maya.Creator):
|
|||
for key, value in animation_data.items():
|
||||
data[key] = value
|
||||
|
||||
data["keepImages"] = False
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ class ExtractPlayblast(pype.api.Extractor):
|
|||
|
||||
preset['camera'] = camera
|
||||
preset['format'] = "image"
|
||||
# preset['compression'] = "qt"
|
||||
preset['quality'] = 95
|
||||
preset['compression'] = "png"
|
||||
preset['start_frame'] = start
|
||||
|
|
@ -102,6 +101,10 @@ class ExtractPlayblast(pype.api.Extractor):
|
|||
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',
|
||||
|
|
@ -111,7 +114,7 @@ class ExtractPlayblast(pype.api.Extractor):
|
|||
"frameEnd": end,
|
||||
'fps': fps,
|
||||
'preview': True,
|
||||
'tags': ['review', 'delete']
|
||||
'tags': tags
|
||||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue