I have a model with several input parameters (e.g. input_holesize, input_threshold etc.). The model creates a polygon layer as its final output. I would like to save the parameters into the attribute table for each feature in order to make the results more transparent. I use QGIS 3.16.7 on a Windows 10 system.
Attempts of solution:
I added another field calculator operation as another algorithm to my model. I wanted to use the function parameter, which seems quite straightforward (function example given in the field calculator:
parameter('BUFFER_SIZE') → 5.6). I tried various variants (e.g.
parameter('input_threshold') as well as
to_string(parameter('input_threshold'))). For none of these functions the field calculator returns an error message, however, the output is allways an empty field.
Aparently I am using the wrong syntax, or the function is actually not what I need.
Does anyone know, how to write the input parameters of a model into the attribute table of the output layer?