Interactive selection of Leaf Primitives in Solaris?

   204   0   1
User Avatar
Member
447 posts
Joined: 4月 2018
オフライン
Hi, I'm trying to get an interactive selection of Leaf Primitives in Solaris.

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_kindargument, 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.



Edited by eikonoklastes - 2025年9月15日 06:11:07

Attachments:
selectSceneGraph.png (95.5 KB)
kind_selection.png (99.9 KB)

  • Quick Links