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.



On Wednesday, February 8, 2017 at 3:37:28 PM UTC+1, Alex Hrazhdan wrote:
>
> Ha-ha! Thank Andrea! It works. I've tried depthPriority, but I wrote 
> smaller value in it, and this didn't work)))) 
>
> On Wednesday, 8 February 2017 16:06:11 UTC+2, Andrea Pinto wrote:
>>
>> 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 :)
>>
>> On Wednesday, February 8, 2017 at 1:24:59 PM UTC+1, Alex Hrazhdan wrote:
>>>
>>> Nope) I guess it's imposible to do in MPxGeometryOverride context.
>>>
>>> On Tuesday, 7 February 2017 15:31:15 UTC+2, Andrea Pinto wrote:
>>>>
>>>> Hi Alex! Did you find something?
>>>>
>>>> On Wednesday, December 7, 2016 at 11:33:17 PM UTC+1, Alex Hrazhdan 
>>>> wrote:
>>>>>
>>>>> Hi guys! Is there any way to draw locators in xray (like joints) with 
>>>>> usage of MPxGeometryOwerride?
>>>>>
>>>>

-- 
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/f718a496-b24b-4ed5-b77c-61f66bc8cada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to