Sampler Nodes
Samplers are used to visually build expressions that can drive the parameters of other nodes in a Graph - rather than acting on a data stream they assemble pseudo expressions which are validated and compiled on a per node basis and evaluated within each nodes individual context at runtime.
The same expression flow can be used to drive any number of parameters within the Graph, the only limitation is that any attribute variables referenced in the Sampler nodes need to exist on the geometry being processed.
For example, a Texture node might use the attribute variable $strandu
as a V coordinate and the graph will succeed when evaluating fibre objects but will fail if particles are evaluated as it doesn't exist on that geometry type.
Here is a quick example using the new Expression Sampler node.
With a Grow node created the new Sampler node can be created and a simple expression is added.
The output from the Expression node expression0 is dragged to the Grow node labelled grow0, when hovering over the target node the right mouse button can be used to reveal a list of parameters to connect too.
Once selected the node graph will update to show the new connection made as well as the parameter being controlled.