🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.after.effects.scripting.render
Article #117

UI Creation / Populating Variables...

#117
From: David_Wigforss
Date: Fri, 15 Feb 2008 15:01
14 lines
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
Technical Details
Message-ID: <3c062062.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,b5b142dc51efb534
X-Google-Attributes: gid1efebe,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: David_Wigforss@adobeforums.com
Newsgroups: adobe.after.effects.scripting.render
Subject: UI Creation / Populating Variables...
Message-ID: <3c062062.-1@webcrossing.la2eafNXanI>
Date: Fri, 15 Feb 2008 07:01:07 -0800
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.news4us.nl!webcrossing