Groups
Groups
Sign in
Groups
Groups
Python Programming for Autodesk Maya
Conversations
Labels
About
Send feedback
Help
Maya VP2 API MPxGeometryOverride
209 views
API
maya
Skip to first unread message
Alex Hrazhdan
unread,
Dec 7, 2016, 5:33:17 PM
12/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
2/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
Hi Alex! Did you find something?
Alex Hrazhdan
unread,
Feb 8, 2017, 7:24:59 AM
2/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
2/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
2/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
2/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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