ScriptSpot

Forum topic · General Scripting

Stored information in rollouts

By JokerMartini · 2010-08-14

Downloads
Description

How do I take this script and make it work right and it being done efficiently.
This is a small portion of a larger script so ideal I'm hoping to store the information for all the controls in each tab in an efficient way that I'll be able to apply to a larger amount of controls.

Problem:
Once each dialog is (removed) it's values and properties for the controls/spinners/colorpicker, all that information is lost. So when I go to click the create button it does not have the customized controls information stored anywhere. That is where my first idea came into possibly using a structure to store the variables somehow.

I could store the information in Local variables but that could easily and quickly become lengthy. What are your thoughts?

John Martini

Comments (1)

Anubis · 2010-08-15

Hi John, when the rollout is closed/removed the values of its ui controllers is strored (not lost), and you still can get it.

rollout test "test"
(
	edittext edt1 "Type something:"
)
createDialog test
test.edt1.text = "Hello!"
destroyDialog test
test.edt1.text --> "Hello!" (the value is stored)