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 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/CAFRtmOAFysr8S99FGm8o-Rc9rbNOf-mWvtVGDSpiUJq9hLvTxg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.