When working with big scenes, it is nice to only load in what you want to see.
I know about the visibility drop-down on the Scene Graph Tree. Checking off the “Load Payloads” and then manually loading the ones I am interested in does exactly what I need, however for some automated workloads I would like to turn this off and then choose which payloads get loaded via code. Any ideas?
Have a look at the hou.LopViewportLoadMasks object returned by hou.LopNetwork.viewportLoadMasks. Everything that you can do in the scene graph tree can also be done with those HOM classes.