GroupBrowser  




Go Back   GroupBrowser > Adobe Product Newsgroups > Adobe After Effects > Scripting & Rendering Automation
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

UI Creation / Populating Variables...
Old 02-15-2008, 10:01 AM #1
David_Wigforss@adobeforums.com
Guest
 
Status:
Posts: n/a
Default UI Creation / Populating Variables...

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
  Reply With Quote

Re: UI Creation / Populating Variables...
Old 02-15-2008, 10:09 AM #2
Jeff_Almasol@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: UI Creation / Populating Variables...

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
  Reply With Quote

Re: UI Creation / Populating Variables...
Old 02-15-2008, 03:11 PM #3
David_Wigforss@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: UI Creation / Populating Variables...

Thanks a bunch, Jeff. Works perfect!
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Microsoft Newsgroups 1 | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.