HI Everybody…
The new Python integration inside H9 is very nice, and I would like to
experiment with it a bit.
Currently I am trying to make a selection script in python that would
select a ring or loop after u select an edge or a face.
After going thru the shelf scripts, I can now get the currently
selected components and container in the viewer using “getGeometrySelections”
command in soptoolutils. But going to the next step, I couldn't figure
out how to select a particular point or face in the viewer or add to
the current selection using python script.
Waiting for ur answers.
Selecting Using Python
4896 4 2- iamjaideep80
- Member
- 82 posts
- Joined: April 2019
- Offline
- rafal
- Staff
- 1449 posts
- Joined: July 2005
- Offline
I may be wrong, but I am pretty sure you cannot directly manipulate selection in HOM (ie, you cannot add or remove entities such as point, face, edge, primitive to/from the selection set). But, you can select/deselect objects by setSelected() on a node.
The only thing you can manipulate is the selectors much like the soptoolutils module does. The users then use the selectors to perform the actual selection which is used by the SOP nodes (usually in the group parameter).
The only thing you can manipulate is the selectors much like the soptoolutils module does. The users then use the selectors to perform the actual selection which is used by the SOP nodes (usually in the group parameter).
- stevenong
- Member
- 1631 posts
- Joined: July 2005
- Offline
iamjaideep80I'm not sure if you just want to learn HOM but you can already select a edge or poly loop in the viewport. In the viewport, after selecting a point/edge/poly, you can hit “l” to select a partial loop or “L” to select a full loop. You can also RMB in the viewport for more options.
HI Everybody…
The new Python integration inside H9 is very nice, and I would like to
experiment with it a bit.
Currently I am trying to make a selection script in python that would
select a ring or loop after u select an edge or a face.
After going thru the shelf scripts, I can now get the currently
selected components and container in the viewer using “getGeometrySelections”
command in soptoolutils. But going to the next step, I couldn't figure
out how to select a particular point or face in the viewer or add to
the current selection using python script.
Waiting for ur answers.
Cheers!
steven
- mmontoya
- Member
- 9 posts
- Joined: March 2007
- Offline
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
-
- Quick Links