You can use the document feature in Lua to save specific parameters that you want to have remembered if present.
(the script will reload the options upon calling and apply them before presenting the GUI)
These functions are documented here:
https://code.google.com/p/xrnx/source/browse/trunk/Documentation/Renoise.Document.API.lua
I had set up a minory snippet that also uses a call and recall of variables:
https://forum.renoise.com/t/tool-widget-column-masking/32614