opselectrecurse
expression function
Returns a recursive list of the selected nodes.
Replaced by: hou.selectedNodes
Usage
opselectrecurse(network, flag)
Returns a string with a space separated list of the selected nodes in the given network, included selected children according to the context.
-
flag = 0: Do not keep the context. Every selected nodes will be returned.
-
flag = 1: Keep the context. It will return only selected nodes belonging to the same context as the “network” argument.
Examples
echo `opselectrecurse("/obj/model",1)`
Returns “edgecusp1 subnet1 subnet1/sphere2”
echo `opselectrecurse("/obj/model",0)`
Returns “edgecusp1 shopnet1 subnet1 subnet1/sphere2”.