Error when repairing render settings
Running version 3.12.2
Describe the bug Using repair on a Render Settings validation error results in this error message:
// Error: pyblish.plugin : Traceback (most recent call last):
File "C:\Program Files (x86)\OpenPype\dependencies\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "C:\Users\florianbehr\AppData\Local\pypeclub\openpype\openpype-v3.12.2\openpype\action.py", line 65, in process
plugin.repair(instance)
File "C:\Users\florianbehr\AppData\Local\pypeclub\openpype\openpype-v3.12.2\openpype\hosts\maya\plugins\publish\validate_rendersettings.py", line 324, in repair
RuntimeError: Item not found: _
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenPype\dependencies\pyblish\plugin.py", line 522, in __explicit_process
runner(*args)
File "C:\Users\florianbehr\AppData\Local\pypeclub\openpype\openpype-v3.12.2\openpype\action.py", line 65, in process
plugin.repair(instance)
File "<string>", line 324, in repair
RuntimeError: Item not found: _
//
To Reproduce Steps to reproduce the behavior:
- Configure some attributes to validate in
project_settings/maya/publish/ValidateRenderSettings/vray_render_attributes - Create a scene in Maya
- Change some render settings so they will cause the validator to error
- Create a render family
- Run publish
- Try repair on the render settings error
Expected behavior The attributes with wrong values should be set to the expected values.
Desktop (please complete the following information):
- OS: Windows
- Host: Maya
[cuID:OP-4141]
This issue is actually not related to the vray_render_attributes but is logic related to the AOV / RenderElement separator.
It fails on this line which is still broken in develop where it should be doing it like how it's done in the RenderSettings.
I have a hunch that if you're in production stress that you might be able to workaround this issue by first opening the V-Ray Render Settings window in Maya at least once so that the vrayRenderElementSeparator option menu group has initialized,
I still get the same error message even if I open the render settings before running validation.