Select primpaths in the Scene Graph Tree with Python

   1302   2   0
User Avatar
Member
15 posts
Joined: Dec. 2019
Offline
Hi,

Is it possible to select and expand prim paths in the Scene Graph Tree with Python.

Something like:
selectPrimPaths(['/world/animation/ship', '/world/fx/blah'])
Edited by jacobvfx - July 1, 2022 06:28:50
User Avatar
Staff
4444 posts
Joined: July 2005
Offline
The scene graph tree selection is tied to the selection stored in the LOP Network. So use hou.LopNetwork.setSelection().
User Avatar
Member
15 posts
Joined: Dec. 2019
Offline
Thanks!

Works like a charm.
  • Quick Links