In: Atomic Nodes
since SD 2019.1.0
The Value Processor allows you to execute a custom function for a one or more Values, that is returned as Value output, on an optional input. It works with the new system of Values being accessible inside the compositing Graph for Designer 2019.1.0. It is comparable to a Pixel Processor, with the difference that it does not compute a function for every pixel, but rather just once for a value plugged into it.
- Value Processor Function:
Allows you to access the internal function editor.
This is not a full description on how to use the Value Processor, it's best to refer to Functions and Values in the Compositing Graph. Some specifics for the Value Processor are pointed out here instead.
Sampling an input.
It is possible to sample an input just like in a Pixel Processor. The main difference is that the $pos System Variable is not available, as you are not parallell processing any pixels and there is no "current position".
Us a static Float 2 instead:
You can only have one single output in a Value Processor (by right-clicking > Set as Output), as with Functions everywhere else. If you want a single node that returns multiple Values, you will have to create a Sub-Graph for it with as many Value Processors as you want.