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

re: Batch Processing Output Module File Path with Folder Dialog Box

$
0
0

I'm trying to write a variation of David Torno's batch processing of file paths in the render queue but with a dialog box to prompt the user. https://www.provideocoalition.com/after-effects-extendscript-training-ep-5/  ~ 42:37.


However, the selectDialog method doesn't return a compatible parameter for a new File. Is there an alternate method or way to convert/extract the full directory path from it?

 

var oldName;   

   

     var newPath = Folder.selectDialog("Please select render output directory: ");  

     

     for (var o = 1; o <= renderQ.numItems; o++) {

          

          oldName = renderQ.item(o).outputModule(1).file.name;

          

          renderQ.item(o).outputModule(1).file = new File(newPath + oldName);     

         

}

 

Error_01.jpg

 

Any suggestions would be helpful. 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>