I'm new to Houdini, so my question might sound stupid but, I'm trying to get component(point, prim…) selections from viewports.
As I understand every viewport can have different selections, so the selections should be fetched by viewport.
Got this few lines working:
scene_viewer = toolutils.sceneViewer() selected_geo = scene_viewer.selectGeometry() selection_str = selection.selectionStrings()
but the issue is that the viewport is always the main one, it doesn't fetch from others even if I use radial menus which execute these lines.
I even tryied:
toolutils.activePane("sceneViewer")
Anyone know how to call the current active sceneViewer?
Thanks in advance.