I have already made this question but I wasn’t able to explain it correctly:
I am using a lot of clusters as user objects and most of the time it is very useful to have the inputs of the cluster ‘loaded’ with a predifined value so if it is used often, you don’t have to connect a slider every time.
The problem is that I cannot find a single routine to act as an “input filter” that will cover all 4 cases:
- no value
- single value
- null value
- multiple values
In every case, null (or empty) values should be replaced by a predifined value.
(the problem with the first three routines in the file, is that the stream filter only evaluates the first value and changes the stream for all the rest…)
(edit:) the fourth routine works for all but the first case: when fed nothing, it gives nothing.
input filter.gh (15.8 KB)