Importing images without user interaction

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
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?
Impudent1
Posts: 57
Joined: June 12th, 2004, 6:40 pm

you could always try wrapping your codebit with the: app.beginSuppressDialogs() , app.endSuppressDialogs() methods
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

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
mads
Posts: 33
Joined: October 15th, 2004, 6:38 am
Location: Denmark
Contact:

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
Post Reply