Hi Marcus
HitTest work perfect, but only for mesh, or nurbs i guess. I doesn't work
with NurbsCurve, Locator...
By the way, i have read your code on github about finding object under
mouse cursor . It help me a lots ;)

On Tue, Jun 18, 2019 at 1:34 AM Marcus Ottosson <konstrukt...@gmail.com>
wrote:

> I haven't tested, but maybe `cmds.hitTest` could help you here?
>
> -
> https://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/hitTest.html
>
> On Mon, 17 Jun 2019 at 16:43, illunara <cb.illun...@gmail.com> wrote:
>
>> Hi everybody
>> I want to select some object under-cursor using maya API, selectFromScene
>> works perfect with origin Maya's viewport. But if i try it with ModelPanel
>> which attach to other Qt's Widget. Things go wrong.
>>
>> Are there any other way to work around?
>> Thanks
>>
>> --
>> 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/7b5a1f6c-62ef-4770-80c0-90ff3612db5c%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/7b5a1f6c-62ef-4770-80c0-90ff3612db5c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/ujvDox37XTc/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAFRtmOAFysr8S99FGm8o-Rc9rbNOf-mWvtVGDSpiUJq9hLvTxg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAFysr8S99FGm8o-Rc9rbNOf-mWvtVGDSpiUJq9hLvTxg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMCvD%2BHR%2B0EcZQmNQr_%3DU53SiO1x33aFzPNE3uivc7RjPWW3Ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to