Create presets with buttons (save/load slider data)

Hi,

I would like to save parameters made with sliders as a set of preset with a button, loadable later with this button
Someone can give direction where I should looking for please

Thank you

Use a Table

you can read out the data and make a table from them and load/save the data : https://www.processing.org/reference/loadTable_.html

see https://www.processing.org/reference/Table.html

When you load the table, read the data from the table and set the sliders to the values from the table.

JSON Data

you could use this: https://www.processing.org/reference/saveJSONArray_.html

with loadJSONArray

Tutorial

see also https://www.processing.org/tutorials/data/

Thanks Chris for this fast reply :slight_smile:

I will try

1 Like

Thank you also for the quick answer :slight_smile: