Notifications
Clear all

[Closed] Folder browsing script

Hello scriptgurus, I’m learning maxscript for a few days but am interested in a specific result:
I’d like a script to take all textures from a specified folder and apply them to different materials.
Is it possible for maxscript to search a given folder and collect filenames with paths??

Thanks in advance

2 Replies

Hi

to collect all jpg in D:\Maps :
Files=getfiles “D:\Maps\*.jpg”

to collects all files in D:\Maps :
Files=getfiles “D:\Maps\.

look for ‘getfiles’ in MAxscript help

Thanks a lot!

Sometimes a solution is right under your toes but somehow…you know the rest:)