Select primpaths in the Scene Graph Tree with Python
1301
2
0
-
- jacobvfx
- 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
-
- mtucker
- 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().
-
- jacobvfx
- Member
- 15 posts
- Joined: Dec. 2019
- Offline
Thanks!
Works like a charm.