importing sequence of obj files

importing sequence of obj files

Anonymous
Not applicable
4,145 Views
4 Replies
Message 1 of 5

importing sequence of obj files

Anonymous
Not applicable
I need to import a sequence of .obj files. I have generated a sequence of geometry in another package, and due to changing point counts per frame, Fbx doesn't seem to work, so I wrote out a sequence of .obj files.

If this requires a script, does anyone have one already written?
0 Likes
4,146 Views
4 Replies
Replies (4)
Message 2 of 5

Steve_Curley
Mentor
Mentor
i don't know offhand of a script to do that, but it should be pretty easy to write one.
getFiles (to get a list of the obj files in the folder)
a for/next loop to iterate over them
importFile (to actually do the import)

This is more of a Maxscript question than a max question and may be better suited to the Maxscript forum. If you want the thread moved, just ask (don't create a duplicate thread please).

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks, sounds right. Not sure who to ask for a move, though. New to max script and frankly tired of learning scripting languages, so if I could find a template or something close that would be great.
0 Likes
Message 4 of 5

Steve_Curley
Mentor
Mentor
I'll move it in the morning, after you've had chance to read this.

You'll get the import dialog once which allows you to make any import option changes you want, then it just goes ahead and imports all the others.
Change the path to suit your system.

(
theFiles = getFiles "c:/imports/*.obj"

for t = 1 to theFiles.count do
importFile theFiles #noprompt using:Wavefront_Object
)

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 5 of 5

Anonymous
Not applicable
Maybe my Batch Loader script will help you as well ;)
http://www.scriptspot.com/3ds-max/scripts/batch-loader
0 Likes