Change selection mode in Python ?
1930
2
0
-
- Anonymous
- Member
- 678 posts
- Joined: 7月 2005
- Offline
Hello,
Is there possibility to tell selectGeometry() to automatically switch into edge selection mode when called, instead of default polygon mode?
cheers.
-
- edward
- Member
- 7722 posts
- Joined: 7月 2005
- Offline
I haven't tried by you might be able to do that by passing in geometry_types = (hou.geometryType.Edges,)
-
- Anonymous
- Member
- 678 posts
- Joined: 7月 2005
- Offline
Yeah, it works. Thank you.
EDIT:
Problem is that if user switches manually into point mode it returns all edges that contains selected points. Hm, have to find another way.