Python selectFromScreen API 2.0 issues

Python selectFromScreen API 2.0 issues

Anonymous
Not applicable
768 Views
0 Replies
Message 1 of 1

Python selectFromScreen API 2.0 issues

Anonymous
Not applicable

I've been trying to solve this issue all day and I think this is just a bug in Maya

The kSurfaceSelectMethod argument to OpenMaya.MGlobal.selectFromScreen() doesn't seem to work in component mode. So selecting faces on one object, which is partially behind another object won't mask your selection based on what the camera can see in shaded mode. Selecting in the viewport with the marquee tool works as intended, but the API call doesn't. I've made a post on another forum asking about the issue, in case anyone is able to figure it out. 

http://discourse.techart.online/t/api-selectfromscreen-ksurfaceselectmethod-working-as-intended/1158...

 

Visual of what I intend to happen
https://imgur.com/a/t0PX2E1

 

Anyone know why this isn't working?

 

Also API 2.0 still doesn't have the MGlobal.selectFromScreen() function implemented, which is a little frustrating.

 

Thanks,

Kato

0 Likes
769 Views
0 Replies
Replies (0)