I can use
hou.SceneViewer.selectSceneGraph()
to trigger an interactive selection, which works fine.I do want to automatically have it select Leaf Primitives though, regardless of the viewport Kind setting (which defaults to Component).
The method does have a
prim_kind
argument, but the method itself is undocumented, and I can't seem to get it to work without having to preselect "Leaf Primitives" manually in the viewport.I am aware that "Leaf Primitives" is technically not a model kind, but since Houdini has it in the viewport "Kind" dropdown, I was wondering if there is a hidden value that can be used to trigger this.
Alternatively, if there is a way to programatically set the Kind drop-down menu, that would be a welcome option.
Many thanks.