Batch Export/Import

Version: 
v04.03
Date Updated: 
03/17/2015
Author Name: 
Jos Balcaen

This is a free script, for non commercial use.

This is the perfect script to transfer your models from 3ds Max to ZBrush/Unity/UDK/...
Basically it batch exports objects to multiple files.
Supported formats : max, obj, fbx, 3ds, ase, dwf, dwg, dxf, dae.

General features

  • Very easy to use script
  • All options are saved.This means all checkboxes, text fields will remember your change.

Export features

  • Reset geometry. Apply the boxmethod to every object (reset transformation etc.). Optionally move the pivot to the origin.
  • Delete turbosmooth. Delete the TurboSmooth modifier before exporting.
  • Move to [0,0,0]. Move objects to the origin before exporting
  • Rotate the objects before exporting (to fix rotation problems)
  • Scale the objects before exporting (to fix scale issues)
  • Name change. Add prefix and/or postfix to the name of the objects before exporting.
  • Combine collision mesh. Mesh with the same name and the given prefix/postifx will be exported together (ex. UCX_).
  • Combine LOD's. Meshes with the given prefix/postfix will be exported to the same file. For example _LOD* (* means numbering) for unity.
  • Group support. Objects in a group are automatically exported to the same file. If the Collapse groups option is enabled, the group will be collapsed to one mesh.

So no need for an export scene. You can check the options and everything will be perfectly exported.
After exporting the scene will be restored.

This script has been updated several times by user requests.
If you have any remarks, requests or feedback, feel free to contact me.

 

Additional Info: 

How to install

You can easily run the script by dragging it in 3ds Max. If this doesn’t work, choose MAXScript -> Run Script…

Create button

If you want a button in 3ds max, you need to create one yourself. Here are the steps:

    • Save the script to a location. (Example C:\Program Files\Autodesk\3ds Max 2013\scripts\)
    • Open the MAXScript editor (MAXScript -> MAXScript Editor…) and create a new script (File -> New)
    • Copy paste the following code:

 

macroScript JosBatchExporterImporter
category:"Custom"
tooltip:"Export/Import multiple objects/files v04"
buttonText:"EXP/IMP"
(
 fileIn @"C:\\JosBalcaen_Batch_Exporter_Importer.mse"
)

  • Change the path to the location where you saved the file
  • Run the code (Tools -> Evaluate All) .
  • Don’t worry, nothing should’ve happen.
  • Go to Customize -> Customize User Interface
  • go to the ToolBar tab and choose as group “Main UI” and Category “Custom”.
  • Drag Export/Import multiple objects/files v04 somewhere on the Main Toolbar to create a button
Version Requirement: 
2011/2012/2013/2014/2015
AttachmentSize
josbalcaen_batch_exporter_importer.mse56.46 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jos's picture

Hi, that is a great idea!

Hi, that is a great idea! I'll let you know when I've added it.

mxdsa's picture

Great tool. Thank you!

Great tool. Thank you!

verticalslicer's picture

Import OBJ Name

Great tool, thanks for making it! Feature request. An option to use OBJ file names as the imported mesh name. When ZBrush kicks out OBJ files, it doesn't write data to the file for a user-given object name, so you end up having to manually rename every single object once you have it imported into Max.

jos's picture

Don't remember exactly, but

Don't remember exactly, but can you try this with the group open? Maybe I decided to export that to multiple files. Cheers

mxdsa's picture

Oh, that is cool. Thanks for

Oh, that is cool. Thanks for the quick supply and neat script.

jos's picture

Do you have the latest

Do you have the latest version and did you checked collapse groups? That should export the objects in the group to the same file..

mxdsa's picture

groups

it seems to export each object within the group, not the group itself, which is a problem for exporting multiple furniture pieces.
Thank you, though.

jos's picture

I haven't tested this on Max

I haven't tested this on Max design. If I have time I'll install the trial and give it a go. It could be that one of the options in the options file are set incorrectly;
Have a look in this file C:\Users\jos\AppData\Roaming\Maxscript\BatchExportImportOptions.ini
Let me know by mail if that doesn't work. I can try to send mine over.

jos's picture

Yes this can be done. I'll

Yes this can be done. I'll put it on the list and will look at it probably after the Holidays. If you remind me by mail, I'll tend to do it quicker ;)

jpjapers's picture

Hi, whatever way i run this i

Hi, whatever way i run this i get the error "Unable to convert: "" to type: Boolean Class"
Im on max design 2014.
Any ideas how to fix this?
Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.