Good question. This is old problem

I use this trick in my interactive tools.
For example, after my tool finish i want to highlight components to use it in next tool if need.
It is very good if main node of my tool is created by soptoolutils.genericTool. In this case components automatically selected (highlighted)
But, if node created manually (with hou.Node.createNode()) it can`t highlight components, except ‘group’ node
So, my temporary solution is creating ‘group’ node after main node and highlight components with hou.SceneViewer.enterCurrentNodeState() Works well, but IMO this is not good