xRaylocator shape

18 views
Skip to first unread message

tins tinss

unread,
Oct 16, 2020, 3:22:55 AM10/16/20
to Python Programming for Autodesk Maya
hi, how i can write one locator shape node,   To display it  like x-Ray joint mode?
(python api)

vince touache

unread,
Oct 16, 2020, 7:44:44 AM10/16/20
to Python Programming for Autodesk Maya
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

Reply all
Reply to author
Forward
0 new messages