Manage Usd Prim Selection with HOM?

   1791   2   1
User Avatar
Member
86 posts
Joined: Jan. 2015
Offline
I've been scanning the docs but I can't seem to find it, how does one manage the selection stage of prims in LOPs with Python? ie how do I figure out what prims are selected, or update/manage the selections?
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
The selection of USD prims is stored on the LOP Network. So:
hou.node('/stage').selection()
hou.node('/stage').setSelection([list of paths])
Edited by mtucker - June 23, 2020 22:25:48
User Avatar
Member
86 posts
Joined: Jan. 2015
Offline
Aaaaah on the LopNetwork, I kept thinking maybe it was on the LopNode, thanks @mtucker!
  • Quick Links