I am trying to use a Python Script to operate on primitives in the scenegraph. But I want the script to identify the prims by resolving a pattern I feed it. Basically instead of targeting explicit paths, I want to identify them using a pattern (the same way a primpattern parameter might. I gather I can use hou.LopSelectionRule.expandedPaths, but this seems to require another lop node object, rather than a string.
Is it possible to specify a pattern (as a string), and have my Python Script node resolve that pattern to actual prim paths in the Scene Graph without involving other nodes? (I was kind of hoping the Python Script node would just have a primpath/primpattern parm like Attribute Wrangle).