OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Error when repairing render settings

Open vonbehr opened this issue 3 years ago • 2 comments

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:

  1. Configure some attributes to validate in project_settings/maya/publish/ValidateRenderSettings/vray_render_attributes
  2. Create a scene in Maya
  3. Change some render settings so they will cause the validator to error
  4. Create a render family
  5. Run publish
  6. 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]

vonbehr avatar Sep 23 '22 07:09 vonbehr

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,

BigRoy avatar Sep 23 '22 07:09 BigRoy

I still get the same error message even if I open the render settings before running validation.

vonbehr avatar Oct 05 '22 08:10 vonbehr