Save and Load states directly through editor?

hi jean-emmanuel
thanks for your answer, still no luck, nothing happens with the two scripts:

var state = stateGet("root")
storage.setItem("my_state", state)

stateSet(storage.getItem("my_state"))

and the most important questions for me to use the stateGet / stateSet function:

is it possible to save only the state of a single tab instead of the root ?
and, is it possible to exclude widgets from being saved and recalled?

if yes, how too do it? sorry, I'm a total noob...

thanks.