Hi there! I'm writing code for making project-based shader libraries. For that I need a thumbnail of each shader. When I detect it needs mental ray for rendering, I switch to mental ray. I want a way to save the user settings, load some presets like the "Draft" or "Production" preset, and restore the user settings after the thumbnail is taken.
For the moment the only way I found which is not very convincing is : save in each computer that we will use the shader library a preset corresponding to my thumbnail render when the user publishes the shader, i save the user presets using cmds.nodePreset(save=["defaultRenderGlobals", "userPreset"]), I load the one for my rendering, I render, I load the one I just saved, and I delete it. is there a better solution? Thank you -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe