Select components in script

   2296   2   1
User Avatar
Member
538 posts
Joined: 12月 2006
Offline
I cant find any solution to select components (points\edges\prims) programmatically.

In Maya, for example, we can select components with something like this cmds.select('pSphere1.vtx')

It is possible to get selection from user with hou.SceneViewer.selectGeometry(), but how to select (highlight) components from my script ?
https://gumroad.com/alexeyvanzhula [gumroad.com]
User Avatar
Member
1807 posts
Joined: 10月 2010
Offline
hey vux, I cannot remember as this was a while ago, but doesnt hou.sceneViewer.selectGeometry() takes also a component glob as your selection inline? (if not I will have to dig through some of my old stuff..)
-G
User Avatar
Member
538 posts
Joined: 12月 2006
Offline
grayOlorin
hey vux, I cannot remember as this was a while ago, but doesnt hou.sceneViewer.selectGeometry() takes also a component glob as your selection inline? (if not I will have to dig through some of my old stuff..)

Thanx for answer, but no it doesnt. This is selectGeometry args:
selectGeometry(self, prompt='Select geometry', sel_index=0, allow_drag=False, quick_select=False, use_existing_selection=True, ordered=False, geometry_types), primitive_types), allow_obj_sel=True, icon=None, label=None) →
https://gumroad.com/alexeyvanzhula [gumroad.com]
  • Quick Links