Maya VP2 API MPxGeometryOverride

209 views
Skip to first unread message

Alex Hrazhdan

unread,
Dec 7, 2016, 5:33:17 PM12/7/16
to Python Programming for Autodesk Maya
Hi guys! Is there any way to draw locators in xray (like joints) with usage of MPxGeometryOwerride?

Andrea Pinto

unread,
Feb 7, 2017, 8:31:15 AM2/7/17
to Python Programming for Autodesk Maya
Hi Alex! Did you find something?

Alex Hrazhdan

unread,
Feb 8, 2017, 7:24:59 AM2/8/17
to Python Programming for Autodesk Maya
Nope) I guess it's imposible to do in MPxGeometryOverride context.

Andrea Pinto

unread,
Feb 8, 2017, 9:06:11 AM2/8/17
to Python Programming for Autodesk Maya
Yesterday, I did some tests and I found it.
In the  function updateRenderItems set the depthPriority of the renderItem
I tried this renderItem.setDepthPriority(10000)

Let me know :)

Alex Hrazhdan

unread,
Feb 8, 2017, 9:37:28 AM2/8/17
to Python Programming for Autodesk Maya
Ha-ha! Thank Andrea! It works. I've tried depthPriority, but I wrote smaller value in it, and this didn't work)))) 

Andrea Pinto

unread,
Feb 8, 2017, 9:52:38 AM2/8/17
to Python Programming for Autodesk Maya
AHHA I don't know if the value is right,you have to try some tests.

In the document:
OpenMayaRender.MRenderItem.setDepthPriority()
The higher the depth priority the closer it will be drawn to the camera.
Reply all
Reply to author
Forward
0 new messages