PDA

View Full Version : Folder browsing script


peliosis
11-02-2006, 01:33 PM
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

Zbuffer
11-02-2006, 02:10 PM
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

peliosis
11-02-2006, 02:16 PM
Thanks a lot!

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

CGTalk Moderation
11-02-2006, 02:16 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.