How to handle global variables for scriptUI scripts
I'm working on a script that will eventually be a dockable panel in AE. I'm used to working on scripts that don't have much UI so I'm getting my head around how to handle the persistent nature of a docked script. If my code is all in functions for the creation of the dialog and the running of various components of the script, how do I handle variables that need to exist on a global scope? For example, I need to have an array defined at some point that one function may need to have access to at different times. But if I define it in one of my other functions, it's not accessible to the function that needs it. However that function runs repeatedly throughout the process so it would also not work to have that variable defined in that function. Is the only way to add more values that get passed into the function from outside?
