Thread View: adobe.after.effects.scripting.render
3 messages
3 total messages
Started by David_Wigforss
Fri, 15 Feb 2008 15:01
UI Creation / Populating Variables...
Author: David_Wigforss
Date: Fri, 15 Feb 2008 15:01
Date: Fri, 15 Feb 2008 15:01
14 lines
1385 bytes
1385 bytes
I've now moved onto UI creation... What I would like to do is create edittext boxes, which would populate my variables.. I'm having a problem on my first attempt..
// Add a panel to contain the components
win.pnlA = win.add("panel", [10, 10, 400, 450], "Settings");
win.pnlA.displayTextLbl = win.pnlA.add("statictext", [10, 415, 100, 430], "XML Name:");
XMLName = win.pnlA.add("edittext", [100, 415, 225, 430], 'XMLTest5');
var logFile = new File("/c/TEMP/" + XMLName + ".xml");
Most of the rest of the script creates lots more static and edit texts with other panels... My problem is, I'm not sure how to get the result of the edittext (in my example, XMLTest5) to appear in the variable/filename. My filename is unwantingly written as [object EditText].xml
Thanks again for your help.
-Dave
Re: UI Creation / Populating Variables...
Author: Jeff_Almasol
Date: Fri, 15 Feb 2008 15:09
Date: Fri, 15 Feb 2008 15:09
5 lines
814 bytes
814 bytes
Hi Dave, Your XMLName variable points to an EditText object. To get its value, you need to reference its text attribute (i.e., XMLName.text). Jeff
Re: UI Creation / Populating Variables...
Author: David_Wigforss
Date: Fri, 15 Feb 2008 20:11
Date: Fri, 15 Feb 2008 20:11
1 lines
689 bytes
689 bytes
Thanks a bunch, Jeff. Works perfect!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads