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
-~----------~----~----~----~------~----~------~--~---

Reply via email to