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

Commit

Permalink
Merge pull request #1486 from tokejepsen/2.x/bugfix/maya_thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored May 10, 2021
2 parents 23b462f + eff98f0 commit 5e7564f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pype/plugins/maya/publish/extract_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ExtractThumbnail(pype.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 = ""
Expand All @@ -47,8 +43,8 @@ def process(self, instance):
# 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,
Expand Down

0 comments on commit 5e7564f

Please sign in to comment.