Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / importing sequence of obj files
  RSS 2.0 ATOM  

importing sequence of obj files
Rate this thread
 
40528
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 2
  • Joined: 28 May 2008 11:49 PM

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?



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 13790
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

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 4.2 through 2012 (SP2+SAP).
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 3
/img/forum/dark/default_avatar.png

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.

Author: bkonersman

Replied: 09 March 2010 10:49 AM  
/img/forum/dark/default_avatar.png

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 1 to theFiles.count do
   
importFile theFiles[t] #noprompt using:Wavefront_Object
)
Author: Steve_Curley

Replied: 09 March 2010 11:21 AM  
/img/forum/dark/default_avatar.png

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

Author: Anubis

Replied: 10 March 2010 06:36 AM  




   
  Settings Choose Theme color: