Does anyone tried to save an image with 'renderWindowEditor' command in Maya 2024?
I'm trying to render something with Arnold and to save an image from Arnold render view window with 'renderWindowEditor' command. Result is something i think has a bug, but ain't sure 100%. It returns 2 strings, and second one is empty. Nothing is saved on disk.
cmds.renderWindowEditor('renderView', e=True, writeImage='C:/TestRender/Test.exr')
# Result: ['renderView', ''] #
I also tried same thing in Maya 2018, and everything works fine. Getting 2 strings as a result, and image is saved on disk.
cmds.renderWindowEditor('renderView', e=True, writeImage='C:/TestRender/Test.exr')
# Result: [u'renderView', u'C:/TestRender/Test.exr'] #
I think something's wrong with Maya render view and Arnold render view.
In Maya 2018 you can open Maya render view or Arnold render view and render with Arnold. You can choose in which view image is displayed.
In Maya 2024 if you choose Arnold render you can only open Arnold render view. If you choose Maya Software renderer and try to open Maya render view after you opend Arnold render view, Maya crashes.
If you start Maya again and choose Maya Software renderer and open Maya render view everything is fine. But if you choose Arnold renderer from Maya render view window, not from settings, and click render button, it automatically closes Maya render view and open Arnold render view.
Don't know if this is intended to work like this, but it has some bugs.