"The naming convention used in this file is to take the regular GL* definitions and add a "M" prefix." - Maya Python API Docs<http://docs.autodesk.com/MAYAUL/2013/ENU/Maya-API-Documentation/index.html?url=cpp_ref/class_m_g_l_function_table.html,topicNumber=cpp_ref_class_m_g_l_function_table_html>
Try *OpenMayaRender.MGL_DEPTH_BUFFER_BIT.* On Monday, 20 January 2014 16:17:24 UTC, Dilen Shah wrote: > > I am calling them this is my test code: > > import maya.OpenMayaRender as OpenMayaRender > view.beginGL() > > # Pushed current state > glFT.glPushAttrib(OpenMayaRender.MGL_CURRENT_BIT) > # Enabled Blend mode (to enable transparency) > glFT.glEnable(OpenMayaRender.MGL_BLEND) > > glFT.glClear(OpenMayaRender.GL_DEPTH_BUFFER_BIT) here is get the error > OpenMayaRender doesnt have attribute > > > D. > > > On Monday, January 20, 2014 5:15:18 PM UTC+1, Jack Straw wrote: >> >> You need to call them from the OpenGL function table. Here is an example; >> http://www.fevrierdorian.com/blog/post/2010/02/12/Creating-custom-locator-with-Maya-s-Python-API >> >> >> On Monday, 20 January 2014 13:05:23 UTC, Dilen Shah wrote: >>> >>> >>> Hey Jack, >>> >>> I am trying to use that but in python as I am using the OpenMayaRender >>> module for it but glClear(GL_DEPTH_BUFFER_BIT) isnt in the attirbutes of >>> it. Do you know which module is it from. >>> >>> D. >>> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d0557617-acb3-449f-9ff5-1a31efb84fbf%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
