hi,

try 
if seeThrough:
    glDepthMask(GL_FALSE);
    glDisable(GL_DEPTH_TEST);
else:
    glDepthMask(GL_TRUE);
    glEnable(GL_DEPTH_TEST);

However, that will react to a "seeThrough" attribute on your node, but not 
to the "xray joint" option from the maya menu directly. I guess you can 
probably query the status of xRay joint from within your node, but never 
had to do this. I'd be curious to know how to do it tho

Le vendredi 16 octobre 2020 à 03:22:55 UTC-4, tins tinss a écrit :

> hi, how i can write one locator shape node,   To display it  like x-Ray 
> joint mode?
> (python api)

-- 
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/d5c6c9a0-8613-43f2-bcbc-3112c846b013n%40googlegroups.com.

Reply via email to