I am in the process of converting a lot of our tools over to C++ and I am 
having some trouble with rendering a scene:

M3dView view = M3dView::active3dView();

MImage fileImage;
view.readColorBuffer(fileImage, true);
fileImage.writeToFile("D:/test.jpg", "jpg");
cerr << "Rendered" << endl;

This renders the current view out exactly as seen, I checked the class 
members and could not see anything to render out a scene with the default 
render, I am looking to render as the "Default renderer" Would it be best 
to render out in python with these sorts of tasks?

cam = cmds.ls('perspShape')[0]
returnImage = cmds.ogsRender(camera = cam, w=1080, h=1080)

Thanks for any help or advice! 

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/1b0c931d-3a4f-450d-8ea8-737801b07dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to