- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I would like to know if it is possible to influence the result of the function cmds.mayaHasRenderSetup() without changing prefs files? Is it based on some undocumented global variable?
Issue:
We would like to start render scenes with Legacy Layers and Render Setup on the farm.
We start Maya and control it with a script. This script needs to be able to render any scene.
The Maya preferences are the default ones, which means Render Setup is enabled.
The Render Setup module needs to be loaded to be able to use it.
But as far as I can see there the Legacy Render setup is always working.
There is only a switch at startup to hide the old UI from the user.
In older Maya versions (2016, 2017 first updates, 2018 first updates) it worked fine to change the preferences *after* starting Maya to "Legacy Layers" to influence the mel function mayaHasRenderSetup().
This way we got Maya to render Legacy Layers without issues.
But this is not possible with the latest Maya 2018 updates.
The mel function was changed into cmds.mayaHasRenderSetup(). And this command seems to be implemented into a DLL file, so we cannot check how it it working.
If it is not possible to change the result of this function, is is possible to switch to Legacy Layers with an environment variable? (And vice versa as i do not know what Maya saves in the prefs file on close)
Solved! Go to Solution.