Search found 112 matches
- March 9th, 2007, 10:06 pm
- Forum: Scripts Discussion
- Topic: Scripted equivalent of File>Import
- Replies: 1
- Views: 6344
Importing files
Hi Norm, Look at the Project object's importFile() or importFileWithDialog() method to retrieve a FootageItem (or array thereof), and then use the LayerCollection object's add() method to add it as a layer. Something like: var fItem = app.project.importFile(File("myJPEGFileToImport.jpg"));...
- March 8th, 2007, 9:55 pm
- Forum: Scripts Discussion
- Topic: All Paths Lead to the SAME PLACE! My Scripts folder...
- Replies: 3
- Views: 9305
ESTK
Hi pfmurphy, openDialog() doesn't take an argument to specify a default path. The first argument is the prompt/title. Consult the Bridge JavaScript Reference document for details on the File object. As for ESTK (ExtendScript Toolkit), its Scripts panel displays the contents of the script folder asso...
- March 8th, 2007, 9:44 pm
- Forum: Scripts Discussion
- Topic: Check for folder existence?
- Replies: 1
- Views: 6339
Folder exists attribute
Hi Byron...
Use the exists attribute for the Folder object, as in:
Hope this helps.
Jeff
Use the exists attribute for the Folder object, as in:
Code: Select all
var theFolder = new Folder(folderLocation);
if (theFolder.exists) {
do some stuff
}
Jeff
- March 6th, 2007, 10:48 pm
- Forum: Scripts Discussion
- Topic: All Paths Lead to the SAME PLACE! My Scripts folder...
- Replies: 3
- Views: 9305
forward slashes
Hi pfmurphy, Does using forward slashes (/) or "escaped"/double backslashes (\\) work for the file path? As in: "F:/My Documents/project_AE6.aep" or: "F:\\My Documents\project_AE6.aep" If you use a backslash, you need to "escape" it by doubling them up (\\) to...
- March 6th, 2007, 10:42 pm
- Forum: Scripts Discussion
- Topic: Is it possible to put a variable in an output path?
- Replies: 2
- Views: 7154
string concatenation
Hi nesanime, You need to concatenate the parts of the file name with something like: myRQItem.outputModule(1).file = new File("D:/3D/Lin/" + myComp.name + "/[compName].mov"); Note that I've also changed the backslashes to forward slashes, otherwise you'd need to "escape"...
- March 6th, 2007, 10:31 pm
- Forum: Scripts Discussion
- Topic: duplicate project item
- Replies: 4
- Views: 10942
CompItem.duplicate()
Hi explorer, Is the topmost (first) item in the Project panel a composition? If not, it's expected that duplicate() won't work as it's defined only for CompItem objects (i.e., compositions), not for folder or footage items. If the first item is a comp, maybe you're using an earlier version of AE tha...
- February 15th, 2007, 10:03 pm
- Forum: Scripts Discussion
- Topic: app.project returns undefined in AE7
- Replies: 7
- Views: 16787
estk target
I would concur with Paul. Confirm that ESTK's target menu is set to After Effects. I've never encountered app.project not returning a Project object in AE7.
Jeff
Jeff
- February 15th, 2007, 10:00 pm
- Forum: Scripts Discussion
- Topic: Pass a variable through the command line or terminal?
- Replies: 3
- Views: 9145
passing data to AE
Hi Byron,
I'm not aware of a way to pass data on the command line. I would just save the data to a file from Photoshop, and then read the data from the After Effects script. ...unless I'm misunderstanding what you're trying to do.
Jeff
I'm not aware of a way to pass data on the command line. I would just save the data to a file from Photoshop, and then read the data from the After Effects script. ...unless I'm misunderstanding what you're trying to do.
Jeff
- November 16th, 2006, 9:52 pm
- Forum: Scripts Discussion
- Topic: Help! Can AE return a value on closing?
- Replies: 2
- Views: 7801
Exit code
Hi elalumie,
I haven't tried it, but maybe app.exitCode will work for you? Refer to the AE Scripting Guide for more details.
Otherwise, maybe you can write the value to a file on disk, and then your calling python script can parse it?
Jeff
I haven't tried it, but maybe app.exitCode will work for you? Refer to the AE Scripting Guide for more details.
Otherwise, maybe you can write the value to a file on disk, and then your calling python script can parse it?
Jeff
- November 16th, 2006, 9:44 pm
- Forum: Scripts Discussion
- Topic: Dynamically update listbox?
- Replies: 2
- Views: 9148
Changing listbox items
Hi cob906, A listbox's items attribute is an array, so if you want to modify a single entry, just reference it as you do any array entry by access its text value (e.g., theListBoxObject.items[0].text = "my new value";). If you need to add/remove items, you can use the .removeAll() and .add...
- August 16th, 2006, 3:32 am
- Forum: Scripts Discussion
- Topic: Folder Parent
- Replies: 1
- Views: 7174
parent folders
Hi hiroto,
If you're referring to a folder in the Project window, you can certainly move project items into it, or move it into a different folder. Check out the Item object's parentFolder attribute, which is read/write in AE 6.5.
Jeff
If you're referring to a folder in the Project window, you can certainly move project items into it, or move it into a different folder. Check out the Item object's parentFolder attribute, which is read/write in AE 6.5.
Jeff
- May 31st, 2006, 6:43 pm
- Forum: Scripts Discussion
- Topic: Localizing scripts
- Replies: 2
- Views: 7806
localization
Hey Dale, I don't have any resources myself, other than any kind souls in the community that want to translate my strings. :-) I haven't tried using the built-in auto-selection of translated strings, so I'm not sure if my rd_localize() wrapper and various dictionaries are set up correctly. The inten...
- May 26th, 2006, 11:07 pm
- Forum: Scripts Discussion
- Topic: image in UI window?
- Replies: 2
- Views: 8199
Controls not available in AE
Unfortunately, the iconbutton, image, and progressbar controls are not supported in AE 7.
Jeff
Jeff
- May 19th, 2006, 10:34 pm
- Forum: Scripts Discussion
- Topic: Any way to supress modal dialog when adding effect?
- Replies: 2
- Views: 7837
text
Hi Dale, If beginSuppressDialogs()/endSuppressDialogs(false) doesn't work, what I've done in the past is create a preset (.ffx) file for the effect, and then use the Layer applyPreset() method. Of course, you need to create the file beforehand, and like with any effect that has "other options&q...
- May 19th, 2006, 10:22 pm
- Forum: Scripts Discussion
- Topic: Copy Footage Source and replace
- Replies: 2
- Views: 7952
duplicate a footage item
Hi JohnBoy,
For disk-based footage items, I suppose you can re-import the file using app.project.importFile(), using the footage item's file.fsName or file.fullName value. Of course, you'd have to re-apply any footage item settings (e.g., Interpret Footage type of stuff).
Jeff
For disk-based footage items, I suppose you can re-import the file using app.project.importFile(), using the footage item's file.fsName or file.fullName value. Of course, you'd have to re-apply any footage item settings (e.g., Interpret Footage type of stuff).
Jeff