-
UI Scripting Design Question
Hello,
I am new to scripting for After Effects but have a lot of experience with other languages and web design. However, the somewhat limited amount of examples in this arena has left me stumped on a design question for my script.
My initial thought was to:
1. Collect some information about the video
2. Grab some premade assets for the final comp
3. Get the footage
4. Slap it all togetherI was thinking I could do this with a step by step window approach. The first window would collect the info needed for #1, then based on that choice #2 would be presented and another choice would be made. etc. etc.
However, I am starting to realize this may not be possible. For some reason I can not figure out how to open another window past the initial one. I have my first step complete fine with the window and click doing everything I want but then I am not sure how to get space to display step #2 and hand it off.
I guess I thought I would open a window for #1, close that window, and then open a new window passing on some information. So far I am not able to get a 2nd window to open. Can you open a window from a window? [BTW I really mean palette when I say window… force of habit…]
Another approach I tried was to use the same window, remove all the elements(button, etc.) and then tried to add new elements. However, I do not think this is possible because they might need to be initialized from the beginning?
Any advice from a broad strokes overview kind of way would be helpful. How do folks usually handle multi-step procedures that require more than one input point in After Effects?
Cheers,
Travis
var my_palette = (thisObj instanceof Panel) ? thisObj : new Window("palette", fmc.scriptName+fmc.version, undefined, {resizeable:true});