Change selection mode in Python ?

   1931   2   0
User Avatar
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.
User Avatar
Member
7722 posts
Joined: 7月 2005
Online
I haven't tried by you might be able to do that by passing in geometry_types = (hou.geometryType.Edges,)
User Avatar
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.
  • Quick Links