MAYA_SHELF_PATH in module file prevents Batch Render from working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
This is a very odd one and I am curious if there is an explanation for this 🙂
I've got a plugin that works well and without any issues.
In my plugin .mod module file, I am setting the MAYA_SHELF_PATH to ensure that the shelf is loaded on Maya startup.
Again, all of this is working well and as expected.
But, it turns out that this seems to be preventing Batch Render from working.
If I try to do a Batch Render, I receive this in the Script Editor:
// Result: Saving temporary file: C:/Users/Sebastian/Documents/maya/projects/default/scenes/batch_render_test__13288.mb //
// Result: Rendering with Maya Software... //
// Result: Rendering Completed. See mayaRenderLog.txt for information. //
But the log file contains nothing but three empty lines and the current date. Literally nothing else.
3/23/2020
But then, if I edit the module file and remove the following line
MAYA_SHELF_PATH += C:\Users\Sebastian\Documents\shelvesand try to do the Batch Render again, then it works without issues.
And if I re-add the line to the module file, it stops working again.
So it must definitely be that line that is causing the issue.
Also important: The plugin is not even loaded! And I do not need to restart Maya or do anything special after editing the module file in a text editor! Just editing and saving is enough to make Batch Render work or stop it from working.
As the solution to this issue seems to be to remove the MAYA_SHELF_PATH from the module file and set it another way, I am not necessarily looking for another workaround.
What I am really after is an explanation of why this causes the Batch Render to fail; because it is not obvious to me and I would try to avoid any similar issues in the future.
Any and all input is much appreciated.
Cheers,
Sebastian