Save UI state

i’m messing with a gui plugin and want to save the state of some checkboxes.

question: is there a way to save values/data to a pin/somewhere ? pin settings get saved with the patch. is there a way to do this programatically from within a plugin ?

config pins it is, danke joreg