mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
(hotfix) maya 2019 compatibility for quicktime extraction
This commit is contained in:
parent
7aefc66f66
commit
4c6a063102
2 changed files with 12 additions and 6 deletions
|
|
@ -2171,11 +2171,14 @@ def load_capture_preset(path=None, data=None):
|
|||
temp_options2['textureMaxResolution'] = 1024
|
||||
temp_options2['enableTextureMaxRes'] = True
|
||||
|
||||
if key == 'alphaCut' :
|
||||
if key == 'alphaCut':
|
||||
temp_options2['transparencyAlgorithm'] = 5
|
||||
temp_options2['transparencyQuality'] = 1
|
||||
|
||||
if key == 'headsUpDisplay' :
|
||||
if key == 'ssaoEnable':
|
||||
temp_options2['ssaoEnable'] = True
|
||||
|
||||
if key == 'headsUpDisplay':
|
||||
temp_options['headsUpDisplay'] = True
|
||||
|
||||
if key == 'displayLights':
|
||||
|
|
@ -2183,7 +2186,10 @@ def load_capture_preset(path=None, data=None):
|
|||
else:
|
||||
temp_options[str(key)] = preset[id][key]
|
||||
|
||||
for key in ['override_viewport_options', 'high_quality', 'alphaCut']:
|
||||
for key in ['override_viewport_options', 'high_quality', 'alphaCut', "gpuCacheDisplayFilter"]:
|
||||
temp_options.pop(key, None)
|
||||
|
||||
for key in ['ssaoEnable']:
|
||||
temp_options.pop(key, None)
|
||||
|
||||
options['viewport_options'] = temp_options
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import capture_gui
|
|||
import clique
|
||||
|
||||
import pype.maya.lib as lib
|
||||
reload(lib)
|
||||
import pype.api
|
||||
import avalon.maya
|
||||
|
||||
from pypeapp import config
|
||||
from maya import cmds, mel
|
||||
import pymel.core as pm
|
||||
from pype.vendor import ffmpeg
|
||||
|
|
@ -59,7 +59,7 @@ class ExtractQuicktime(pype.api.Extractor):
|
|||
preset = lib.load_capture_preset(data=capture_preset)
|
||||
except:
|
||||
preset = {}
|
||||
self.log.info('using viewport preset: {}'.format(capture_preset))
|
||||
self.log.info('using viewport preset: {}'.format(preset))
|
||||
|
||||
preset['camera'] = camera
|
||||
preset['format'] = "image"
|
||||
|
|
@ -111,7 +111,7 @@ class ExtractQuicktime(pype.api.Extractor):
|
|||
movieFile = filename + ".mov"
|
||||
# movieFileBurnin = filename + "Burn" + ".mov"
|
||||
|
||||
movieFilefull_movie_path = os.path.join(stagingdir, movieFile)
|
||||
full_movie_path = os.path.join(stagingdir, movieFile)
|
||||
self.log.info("output {}".format(full_movie_path))
|
||||
with avalon.maya.suspended_refresh():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue