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 ?
Select components in script
2549 2 1-
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- オフライン
-
- grayOlorin
- Member
- 1807 posts
- Joined: 10月 2010
- オフライン
-
- Alexey Vanzhula
- Member
- 538 posts
- Joined: 12月 2006
- オフライン
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) →
-
- Quick Links

