Message 1 of 1
Rendering MR with Python?
Not applicable
05-14-2013
05:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Folks,
I'm trying to setup a tool that renders out thumbnails of meshes with different cameras. Things are going along nicely but I can't figure out a very important python command.
How can I render a single frame with Mental Ray through a Python command? I need to be able to specify the name of the image to be outputted as well as the camera that will do the rendering.
cmds.render seems to only do software
cmds.Mayatomr I can't figure out how to start the render with this one
So is there a command like
cmds.RenderWithMentalRay(camera = 'MyCam', file = 'C:/Stuff/Myfile.png, format = '.png')
That's what I desire.
Thank you very much!!
-B
I'm trying to setup a tool that renders out thumbnails of meshes with different cameras. Things are going along nicely but I can't figure out a very important python command.
How can I render a single frame with Mental Ray through a Python command? I need to be able to specify the name of the image to be outputted as well as the camera that will do the rendering.
cmds.render seems to only do software
cmds.Mayatomr I can't figure out how to start the render with this one
So is there a command like
cmds.RenderWithMentalRay(camera = 'MyCam', file = 'C:/Stuff/Myfile.png, format = '.png')
That's what I desire.
Thank you very much!!
-B