mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use instance start and end instead of timeline
This commit is contained in:
parent
bcbee03761
commit
44b5acd058
1 changed files with 2 additions and 6 deletions
|
|
@ -26,10 +26,6 @@ class ExtractThumbnail(openpype.api.Extractor):
|
|||
def process(self, instance):
|
||||
self.log.info("Extracting capture..")
|
||||
|
||||
start = cmds.currentTime(query=True)
|
||||
end = cmds.currentTime(query=True)
|
||||
self.log.info("start: {}, end: {}".format(start, end))
|
||||
|
||||
camera = instance.data['review_camera']
|
||||
|
||||
capture_preset = ""
|
||||
|
|
@ -50,8 +46,8 @@ class ExtractThumbnail(openpype.api.Extractor):
|
|||
# preset['compression'] = "qt"
|
||||
preset['quality'] = 50
|
||||
preset['compression'] = "jpg"
|
||||
preset['start_frame'] = start
|
||||
preset['end_frame'] = end
|
||||
preset['start_frame'] = instance.data["frameStart"]
|
||||
preset['end_frame'] = instance.data["frameStart"]
|
||||
preset['camera_options'] = {
|
||||
"displayGateMask": False,
|
||||
"displayResolution": False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue