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/f309f4be-ce6c-4018-8a50-ec34e568bf13%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to