ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to import footage into After Effects from a script?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mario Gomes
How to import footage into After Effects from a script?
on Dec 29, 2011 at 1:44:35 am

Hi,

I need to write a jsx script that imports footage into an after effects project. I can't find any information about this. Anyone knows how this can be done?

Thanks


Return to posts index

John Cuevas
Re: How to import footage into After Effects from a script?
on Dec 29, 2011 at 4:48:03 am

I don't write scripts, but the first place I would check is the expressions forum here and wait for Dan Ebberts to reply.

He also has some scripting stuff on his webpage:
http://www.motionscript.com/

Finally there is a 5 part tutorial on AE tuts you might want to check out:

http://ae.tutsplus.com/tutorials/workflow/introduction-to-writing-scripts-f...

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

Kaspar Gio
Re: How to import footage into After Effects from a script?
on Jun 21, 2013 at 10:14:15 am

For my own script I imported multiple tiff-sequences with this:


var path = "~insert your filepath here ~";

var io = new ImportOptions(File(path));
if (io.canImportAs(ImportAsType.FOOTAGE));
io.importAs = ImportAsType.FOOTAGE;

// if your footage is an image-sequence:
io.sequence = true;
io.forceAlphabetical = true;

tiffseq = app.project.importFile(io);
tiffseq.name = 'My automatically imported foorage";

theComp = app.project.activeItem; //currently selected composition(example)
theComp.layers.add(tiffseq);


Hope it helps!

Layout/compositor for Animation show.


Return to posts index


Hayden Klabunde
Re: How to import footage into After Effects from a script?
on Apr 1, 2015 at 7:50:09 pm

Hello:
I've used your script and was able to import a single image and import an image sequence. Is it possible to import an image sequence using file names within an array?(The files are contained within the same folder and I need to call the files multiple times.)



var myFileArray= new Array("file.ext","file.ext","file.ext");
var path = "~/Desktop/Folder/"(myFileArray);
var io = new ImportOptions(File(path));

if (io.canImportAs(ImportAsType.FOOTAGE));
io.importAs = ImportAsType.FOOTAGE;
io.sequence = true;
io.forceAlphabetical = false;
tiffseq = app.project.importFile(io);
tiffseq.name = "File Name";

alert("Image Import Complete");


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]