MAX Script - How to make ATF importer import any file in folder?

MAX Script - How to make ATF importer import any file in folder?

Anonymous
Not applicable
772 Views
2 Replies
Message 1 of 3

MAX Script - How to make ATF importer import any file in folder?

Anonymous
Not applicable

Hello everyone.

I have this line working to import a 1.jt file

importFile @"C:\jt\1.jt" #noprompt

 

And what I need is to import any .jt file would be placed in that folder.


importFile @"C:\jt\*.jt" #noprompt

doesn't work.

Any ideas?

Thanks in advance.

0 Likes
Accepted solutions (1)
773 Views
2 Replies
Replies (2)
Message 2 of 3

brentscannell
Autodesk
Autodesk
Accepted solution

Hi @Anonymous 

 

Try:

files = getFiles "C:\jt\*.jt"
for i in files do
(
	importFile i #noPrompt
)



Message 3 of 3

Anonymous
Not applicable

Works like a charm!
Thank you very much!)

0 Likes