Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

image export/import script won't work, need guru help

$
0
0

hi guys, i try export image from AE to png file and import this file back to AE with adding to timeline via script, exporting working excellent but importing not work....

script:

 

function test()

{

var myProj = app.project;

var myComp = myProj.activeItem;

app.project.activeItem.saveFrameToPng(app.project.activeItem.time, new File("C:\\Users\\UserName\\Desktop\\1111\\2test.png"));

var importOptions = new ImportOptions("C:\\Users\\UserName\\Desktop\\1111\\2test.png");

var importImg = app.project.importFile (importOptions);

myComp.layers.add(importImg);

}

 

thanks


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>