Page 1 of 1

Importing images without user interaction

Posted: September 8th, 2004, 2:16 pm
by mobopro
I'd like to import a series of images. Each of them will be still footage, with merged layers. To do so, I have:

app.project.importFile(new ImportOptions(new File(f)))

Each time it imports an image, it presents the user with a dialog, so the user must manually choose to bring it in as footage, merged layers. There doesn't seem to be any way to set these in the script...

...at least, that I know of. Any ideas?

Posted: September 10th, 2004, 2:16 pm
by Impudent1
you could always try wrapping your codebit with the: app.beginSuppressDialogs() , app.endSuppressDialogs() methods

Posted: October 9th, 2004, 6:52 am
by Paul Tuersley
Did the SupressDialog methods do anything?

I've been told by those that should know that there is no way to skip the dialog when using ImportAsType.FOOTAGE, but that it has now been filed as a feature request.

Paul T

Posted: February 12th, 2005, 3:49 am
by mads
I use the replace() method to get round this problem I make a composition with as many solids I need , then i find the Solids folder and replace the solids with the files I need to import
-Mads