Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


In addition, you need to define a section for the preset template. When you save a subpreset, the section will be passed on from the preset template to the callback. You can manage different subsets of parameters by using the section as condition for an if statement that stores only the parameters of interest. The data you pass on to the return statement will be stored with the subpreset. The data can be of any type, but it is common practice to use a table that can easily be extended with more fields. When the subpreset is restored, the onLoadSubPreset callback will receive the stored data.