Hello Softies (and others) !
Do you know how to script a “Pick Edge Session” to request one or more edges selection from the user ?
Like this in softimage SDK doc :
http://docs.autodesk.com/SI/2015/ENU/Softimage-Developer-Help//index.html# [docs.autodesk.com]!/url=./si_cmds/PickElement.html
Thanks.
Pick Edge Session
3729 2 1-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
-
- johm
- Staff
- 138 posts
- Joined: Dec. 2010
- Offline
here's a basic python snippet that should get you started…
import toolutils
scene_viewer = toolutils.sceneViewer()
scene_viewer.setPickGeometryType(hou.geometryType.Edges)
sel = scene_viewer.selectGeometry( prompt = “pick something” , use_existing_selection=False )
# sel.whatever; ie, sel contains whatever you selected
print sel.selectionStrings()
import toolutils
scene_viewer = toolutils.sceneViewer()
scene_viewer.setPickGeometryType(hou.geometryType.Edges)
sel = scene_viewer.selectGeometry( prompt = “pick something” , use_existing_selection=False )
# sel.whatever; ie, sel contains whatever you selected
print sel.selectionStrings()
-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
-
- Quick Links