Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Export Selected max5 / gmax way
  RSS 2.0 ATOM  

Export Selected max5 / gmax way
Rate this thread
 
22410
 
Permlink of this thread  
avatar
  • Location: Germany
  • Total Posts: 173
  • Joined: 06 March 2008 09:37 PM

Hi,
is there an easy way to script the export of selected objects to a plugin file format? If yes. How do I supress a showing dialog when exporting or entering values if there is no docu for the plugin available?



Regards Matthias

----
C2Q 9650, 8GB Ram
3dsmax 8, 2009, 2010 and 2011

Replies: 0
avatar

Usually you can do the following:

// Set your file name
fileName "D:\Assets\Object\object.obj"
exportFile fileName #noPrompt selectedOnly:true

The Exportfile function will usually pick the proper exporter matching the supplied extension in the given fileName.  However in some cases you may have to supply the specific classID when you have multiple exporters supporting the same filetype.  In that case you would add the flag “using: < maxclass>”.



Randall Hess
Senior Technical Animator
THQ, Volition Inc.

Replies: 0