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

Interpret Footage > change Framerate with script ?

$
0
0

Hi guys, I'm importing image sequences with my script, recreating the local folder structure.

All this works fine, but now I would love to add a framerate option. To maybe specify a different framerate than the project's default one. This can be done in GUI with right-click > Interpret Footage > Main... > Frame Rate

Can this be done with Scripting ?

 

I could find this method AVItem setProxyWithPlaceholder()..not sure it's the best way

Thanks in advance !

 

Basically my script works like this:

 

    myFolderArray = myFolder.getFiles();

    for(i=0;i<myFolderArray.length;i++){

        if(myFolderArray[i] instanceof Folder){

 

            var aFolder = myFolderArray[i];

            myFileArray = aFolder.getFiles();

            var newFolder = app.project.items.addFolder(aFolder.name);  

            var myImportOptions = new ImportOptions();

 

               if(myFileArray[0] instanceof File){

 

                   var aFile = myFileArray[0];

                    if(aFile) {

 

                            myImportOptions.file = aFile;

                            myImportOptions.sequence = true;

                            var newFile = app.project.importFile(myImportOptions);

                            newFile.parentFolder = newFolder;

                        }

                    }

                }

       

        }


Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

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