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

How to filter array of file-names?

$
0
0

Hi everybody,

 

I'm trying to populate a list with files of a specific file type and then import the selection from my list into my current AE project. I've got a folder with many subfolders. So far I only managed to check through all the folders by using David Tornos solution form here:

Working with system folders and files

 

Now I have an array with all files in the subfolders. How can I filter that array to only show files with specific filename extensions, e.g. .jpg?

 

The folderObj.getFiles function has a convenient mask with which this is possible. Is there anything similar for an array?

 

Regards, Michael


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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