Collect All Images

What would be the most efficient way of collecting all available and Max acceptable images within a specified directory?

local	dir = @"C:\Users\Public\Pictures\Sample Pictures\"
local	imageBankArr = getFiles (dir + "*.jpg*")

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

Thank you Anubis for the

Thank you Anubis for the quick response and simple code.

John Martini

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Anubis's picture

maxOps.canImportBitmap

arrAllFiles = getFiles (GetDir #preview + "/*.*")
arrImgFiles = for file in arrAllFiles where \
maxOps.canImportBitmap file collect file

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.