-
Notifications
You must be signed in to change notification settings - Fork 129
Maya: Add additional playblast options to review Extractor. #3384
Conversation
Task linked: OP-3438 Maya: missing playblast options |
And that you need to run your code more often 😅 |
YES I SHALL :D |
…ub.com/pypeclub/OpenPype into OP-3438_Maya-missing-playblast-options
This reverts commit 759cea4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// pyblish.ExtractPlayblast : using viewport preset: {'compression': 'jpg', 'format': 'image', 'quality': 95, 'off_screen': True, 'height': 1080, 'width': 1920, 'display_options': {'background': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundBottom': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundTop': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'displayGradient': True}, 'viewport_options': {'rendererName': 'vp2Renderer', 'displayLights': 'default', 'lineAAEnable': True, 'shadows': True, 'textures': True, 'twoSidedLighting': True, 'ssaoAmount': 0, 'ssaoFilterRadius': 0, 'ssaoRadius': 0, 'ssaoSamples': 0, 'hwFogEnable': True, 'hwFogFalloff': '0', 'hwFogStart': 0, 'hwFogEnd': 0, 'hwFogAlpha': 0, 'hwFogDensity': 0, 'motionBlurEnable': True, 'motionBlurShutterOpenFraction': 0, 'motionBlurSampleCount': 0, 'cameras': False, 'clipGhosts': False, 'controlVertices': False, 'deformers': False, 'dimensions': False, 'dynamicConstraints': False, 'dynamics': False, 'fluids': False, 'follicles': False, 'greasePencils': False, 'grid': False, 'hairSystems': True, 'handles': False, 'hud': False, 'hulls': False, 'ikHandles': False, 'imagePlane': True, 'joints': False, 'lights': False, 'locators': False, 'manipulators': False, 'motionTrails': False, 'nCloths': False, 'nParticles': False, 'nRigids': False, 'nurbsCurves': False, 'nurbsSurfaces': False, 'particleInstancers': False, 'pivots': False, 'planes': False, 'pluginShapes': False, 'polymeshes': True, 'strokes': False, 'subdivSurfaces': False}, 'viewport2_options': {'textureMaxResolution': 1024, 'enableTextureMaxRes': True, 'textureMaxResMode': 1, 'multiSampleEnable': True, 'multiSampleCount': 4, 'ssaoEnable': True}, 'sound': None, 'camera': '|camera1|cameraShape1', 'start_frame': 1001, 'end_frame': 1050, 'filename': 'C:\\Users\\murph\\AppData\\Local\\Temp\\pyblish_tmp_oce37kc2\\reviewMain', 'overwrite': True, 'viewer': False} //
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\hosts\maya\plugins\publish\extract_playblast.py", line 109, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 109, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable' //
b'Processing Thumbnail'
// pyblish.ExtractThumbnail : Extracting capture.. //
// pyblish.ExtractThumbnail : Using viewport preset: {'compression': 'jpg', 'format': 'image', 'quality': 95, 'isolate_view': True, 'off_screen': True, 'height': 1080, 'width': 1920, 'display_options': {'background': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundBottom': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundTop': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'displayGradient': True}, 'viewport_options': {'rendererName': 'vp2Renderer', 'displayLights': 'default', 'lineAAEnable': True, 'shadows': True, 'textures': True, 'twoSidedLighting': True, 'ssaoAmount': 0, 'ssaoFilterRadius': 0, 'ssaoRadius': 0, 'ssaoSamples': 0, 'hwFogEnable': True, 'hwFogFalloff': '0', 'hwFogStart': 0, 'hwFogEnd': 0, 'hwFogAlpha': 0, 'hwFogDensity': 0, 'motionBlurEnable': True, 'motionBlurShutterOpenFraction': 0, 'motionBlurSampleCount': 0, 'cameras': False, 'clipGhosts': False, 'controlVertices': False, 'deformers': False, 'dimensions': False, 'dynamicConstraints': False, 'dynamics': False, 'fluids': False, 'follicles': False, 'greasePencils': False, 'grid': False, 'hairSystems': True, 'handles': False, 'hud': False, 'hulls': False, 'ikHandles': False, 'imagePlane': True, 'joints': False, 'lights': False, 'locators': False, 'manipulators': False, 'motionTrails': False, 'nCloths': False, 'nParticles': False, 'nRigids': False, 'nurbsCurves': False, 'nurbsSurfaces': False, 'particleInstancers': False, 'pivots': False, 'planes': False, 'pluginShapes': False, 'polymeshes': True, 'strokes': False, 'subdivSurfaces': False}, 'viewport2_options': {'textureMaxResolution': 1024, 'enableTextureMaxRes': True, 'textureMaxResMode': 1, 'multiSampleEnable': True, 'multiSampleCount': 4, 'ssaoEnable': True}, 'sound': None} //
// pyblish.ExtractThumbnail : Outputting images to C:\Users\murph\AppData\Local\Temp\pyblish_tmp_460aoei4\reviewThird //
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\hosts\maya\plugins\publish\extract_thumbnail.py", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable' //
b'Processing Thumbnail'
// pyblish.ExtractThumbnail : Extracting capture.. //
// pyblish.ExtractThumbnail : Using viewport preset: {'compression': 'jpg', 'format': 'image', 'quality': 95, 'isolate_view': True, 'off_screen': True, 'height': 1080, 'width': 1920, 'display_options': {'background': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundBottom': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundTop': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'displayGradient': True}, 'viewport_options': {'rendererName': 'vp2Renderer', 'displayLights': 'default', 'lineAAEnable': True, 'shadows': True, 'textures': True, 'twoSidedLighting': True, 'ssaoAmount': 0, 'ssaoFilterRadius': 0, 'ssaoRadius': 0, 'ssaoSamples': 0, 'hwFogEnable': True, 'hwFogFalloff': '0', 'hwFogStart': 0, 'hwFogEnd': 0, 'hwFogAlpha': 0, 'hwFogDensity': 0, 'motionBlurEnable': True, 'motionBlurShutterOpenFraction': 0, 'motionBlurSampleCount': 0, 'cameras': False, 'clipGhosts': False, 'controlVertices': False, 'deformers': False, 'dimensions': False, 'dynamicConstraints': False, 'dynamics': False, 'fluids': False, 'follicles': False, 'greasePencils': False, 'grid': False, 'hairSystems': True, 'handles': False, 'hud': False, 'hulls': False, 'ikHandles': False, 'imagePlane': True, 'joints': False, 'lights': False, 'locators': False, 'manipulators': False, 'motionTrails': False, 'nCloths': False, 'nParticles': False, 'nRigids': False, 'nurbsCurves': False, 'nurbsSurfaces': False, 'particleInstancers': False, 'pivots': False, 'planes': False, 'pluginShapes': False, 'polymeshes': True, 'strokes': False, 'subdivSurfaces': False}, 'viewport2_options': {'textureMaxResolution': 1024, 'enableTextureMaxRes': True, 'textureMaxResMode': 1, 'multiSampleEnable': True, 'multiSampleCount': 4, 'ssaoEnable': True}, 'sound': None} //
// pyblish.ExtractThumbnail : Outputting images to C:\Users\murph\AppData\Local\Temp\pyblish_tmp_lmvmfyad\reviewSecondary //
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\hosts\maya\plugins\publish\extract_thumbnail.py", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable' //
b'Processing Thumbnail'
// pyblish.ExtractThumbnail : Extracting capture.. //
// pyblish.ExtractThumbnail : Using viewport preset: {'compression': 'jpg', 'format': 'image', 'quality': 95, 'isolate_view': True, 'off_screen': True, 'height': 1080, 'width': 1920, 'display_options': {'background': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundBottom': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'backgroundTop': [0.49019607843137253, 0.49019607843137253, 0.49019607843137253], 'displayGradient': True}, 'viewport_options': {'rendererName': 'vp2Renderer', 'displayLights': 'default', 'lineAAEnable': True, 'shadows': True, 'textures': True, 'twoSidedLighting': True, 'ssaoAmount': 0, 'ssaoFilterRadius': 0, 'ssaoRadius': 0, 'ssaoSamples': 0, 'hwFogEnable': True, 'hwFogFalloff': '0', 'hwFogStart': 0, 'hwFogEnd': 0, 'hwFogAlpha': 0, 'hwFogDensity': 0, 'motionBlurEnable': True, 'motionBlurShutterOpenFraction': 0, 'motionBlurSampleCount': 0, 'cameras': False, 'clipGhosts': False, 'controlVertices': False, 'deformers': False, 'dimensions': False, 'dynamicConstraints': False, 'dynamics': False, 'fluids': False, 'follicles': False, 'greasePencils': False, 'grid': False, 'hairSystems': True, 'handles': False, 'hud': False, 'hulls': False, 'ikHandles': False, 'imagePlane': True, 'joints': False, 'lights': False, 'locators': False, 'manipulators': False, 'motionTrails': False, 'nCloths': False, 'nParticles': False, 'nRigids': False, 'nurbsCurves': False, 'nurbsSurfaces': False, 'particleInstancers': False, 'pivots': False, 'planes': False, 'pluginShapes': False, 'polymeshes': True, 'strokes': False, 'subdivSurfaces': False}, 'viewport2_options': {'textureMaxResolution': 1024, 'enableTextureMaxRes': True, 'textureMaxResMode': 1, 'multiSampleEnable': True, 'multiSampleCount': 4, 'ssaoEnable': True}, 'sound': None} //
// pyblish.ExtractThumbnail : Outputting images to C:\Users\murph\AppData\Local\Temp\pyblish_tmp_oce37kc2\reviewMain //
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\hosts\maya\plugins\publish\extract_thumbnail.py", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 98, in process
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 207, in capture
_applied_viewport_options(viewport_options, panel)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 427, in enter_context
result = _cm_type.__enter__(cm)
File "C:\Program Files\Autodesk\Maya2022\Python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\REPO\OpenPype\openpype\vendor\python\common\capture.py", line 731, in _applied_viewport_options
cmds.modelEditor(panel, edit=True, **options)
TypeError: Invalid flag 'lineAAEnable' //
b'Processing Extract Review'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_review.py", line 73, in process
KeyError: 'representations'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 73, in process
KeyError: 'representations' //
b'Processing Extract Review'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_review.py", line 73, in process
KeyError: 'representations'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 73, in process
KeyError: 'representations' //
b'Processing Extract Review'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_review.py", line 73, in process
KeyError: 'representations'
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 73, in process
KeyError: 'representations' //
b'Processing Extract burnins'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_burnin.py", line 79, in process
RuntimeError: Burnin needs already created mov to work on.
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 79, in process
RuntimeError: Burnin needs already created mov to work on. //
b'Processing Extract burnins'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_burnin.py", line 79, in process
RuntimeError: Burnin needs already created mov to work on.
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 79, in process
RuntimeError: Burnin needs already created mov to work on. //
b'Processing Extract burnins'
// Error: pyblish.plugin : Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "D:\REPO\OpenPype\openpype\plugins\publish\extract_burnin.py", line 79, in process
RuntimeError: Burnin needs already created mov to work on.
Traceback (most recent call last):
File "D:\REPO\OpenPype\.venv\lib\site-packages\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "<string>", line 79, in process
RuntimeError: Burnin needs already created mov to work on. //
Simplify key test. Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
…ub.com/pypeclub/OpenPype into OP-3438_Maya-missing-playblast-options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't test it functionally now, because my Maya is refusing long-term to produce playblast because of RuntimeError: No active model panel found
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
Thank you Ondrej, I've committed those changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested it and it works. Thanks a lot!
Brief description
This adds in additional playblast options to the project settings review extractor settings and resolves #3383.
Description
Propagates flags as keys from
capture.py
intoschema_maya_capture.json
for it to be passed during extraction ofreview
instance.Testing notes:
review
instance as per OpenPype workflow. (Can be found here: https://openpype.io/docs/artist_hosts_maya#reviews)