An operator can use a selection to determine what nodes will be selected to be processed by the operator at render time. The selection is an expression that can consist of multiple selections concatenated by:
Each selection uses glob patterns and regular expressions and a node will be processed by the operator if the expression matches the node name. By default glob matching is used unless the selection is in a regex quote, i.e.
(/group0/sphere* and not (/group0/sphere1 or /group0/sphere0)) or /group1/sphere3
not r'p(ickle|ringle)[0-9]+'r'c(ar1|ar2)' or
Selections can also be used to match parameter names and values on the selected nodes, including the node entry name, type, and derived type. This is done using a parameter dot-delimiter
Comparators can be used to match certain parameter values. The following selection matches all nodes whose name starts with 'sphere' and has a 'radius' larger than 0.5.
The parameter matching also supports concatenation and glob/regex, e.g.
Arrays and multi-value parameters such as vectors, RGB, etc. are matched using square brackets. If an array has a single value or if the array consists of single numbers then only one set of square brackets is necessary.
Matching parameters of type string, enum and node requires string literals, e.g.
Note: The value will be treated as a parameter reference if the string quotes are omitted (see below).
It is possible to match specific array indices in array and multi-value parameters. Square brackets are not necessary when matching a single value.
Commonly, the node already has some arbitrary user parameters coming from e.g. simulation or even another operator.
It is possible to match other node parameters of the same type, e.g.
Node parameters can match single string values, e.g. to match a shader based on a user string parameter
We can also match parameters on other nodes, where the syntax is #node_name.param_name1[.param_nameN]
It can be useful to match values on parameters that are linked to the node. Shaders are a common example, where the value can also refer to other parameters
We can also match more than one parameter by using a glob or regex expression in the parameter name.
A simple example is matching an RGB parameter regardless of if it's called color or colour.
The operator is given all the parameters that matched where it can either use all of them or decide what to do with each one.
The selection can filter based on node entry information such as node entry name (@node), type (@type), and derived type (@derived)
This can be concatenated in the usual way with other parameter selections.