It must works on all render engine. In fact i'm trying to make a render manager with only mayapy. So I can't get the status independently of the render engine ?
ginko On 26 juil, 23:21, Chad Dombrova <[email protected]> wrote: > are you rendering using maya software or mentalray? in what context > are you using this test? > > -chad > > On Jul 26, 2009, at 7:01 AM, Ginko Lev wrote: > > > > > Hello, I want to know if maya is rendering or not, so after reading > > documentation I've tried that : > > > import maya.OpenMayaRender as OMR > > > currentState = OMR.MRenderUtil.mayaRenderState() > > if (currentState==OMR.MRenderUtil.kBatchRender): > > print "batch render!" > > else: > > print "other rendering... or not!" > > > but it's not working, do you know how can i get this information ? > > Thank you. > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
