Mass exporting of selected objects in 3dsmax

35 votes
Version: 
1.6
Date Updated: 
11/03/2017

'

V1_6:
Update to support 3dsmax 2018

New Features
-- Settings in the util are stored in a ini file, so they are kept when you quit the util
-- I added a reset ini button so you can go back to the default settings
-- A simple button that selects all visible objects
-- I also made the outputPath button show the current outputPath..

My first version of this script was created to simplify the process of exporting many objects from one 3dsmax scene into separate obj files.

Now I have added another feature by request from a user so it now supports exporting frames or a framerange of the selected objects.

Lets say you have created some sort of simulation inside 3dsmax and want to import that into another tool. Ex cloth simulation.

This will create a separate .obj file for every frame and also every object you have selected.

You can run it by just dragNdrop it onto 3dsmax.

-- Settings in the util are stored in a ini file, so they are kept when you quit the util
-- I added a reset ini button so you can go back to the default settings
-- A simple button that selects all visible objects
-- I also made the outputPath button show the current outputPath..
-- I have added group support, if there is a group in the selection it will export the whole group as one file.

-- I have added a new "single mesh" feature. This takes the group you have selected and snapshots all the parts attaches them together into one mesh, it then exports that mesh. This makes one mesh out of the whole group. This might be useful for someone. I believe it can be useful for importing animated objects into realflow.

-----------
Anton Berg
OgmaSoul3D

Additional Info: 

Features:
SingleMesh:
To use this do the following;
1) just in case... always save your scene before running this, some fileformats causes 3dsmax to crach when trying to batch..
2) group all objects that should be "one mesh"
3) check the singlemesh checkbox
4) export... you will see that your objects will get snapshot during export... but after every export the snaphoted versions are deleted..

Fixed bugs:
In version 1.0 I fixed a bug where the browse button did not work!

Known bugs:
I know that some export formats does not support the "Export Selected" function which makes this script not very useful for certain fileformats.

I have tried .obj and .3ds alot and thoose work. (you still have the old issue with 3ds format and the 64K limit in facecount, but that is the limitation of 3ds)

I hope someone else finds this useful!

Anyone that has some tips of how to import an .obj sequences into maya/softimage/houdini are very welcome to comment! Since this is not my main tools I am not the wiz on that.

Version Requirement: 
2012
AttachmentSize
os3d_exportobj_v13.png31.47 KB
os3d_exportobj_v15.ms18.83 KB
mass_exporter_v1_6.ms19.06 KB

Comments

Comment viewing options

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

thx - group feature works

thx - group feature works -D

would be nice if i could export ase though, looks like he´s only exporting frame 0 for all files.

i guess it has something to do with the global settings from the export popup.

Anton Berg's picture

I have updated the script so

I have updated the script so it only exports one file for every group. Test and get back to me if it doesnt work.

Regarding "save as older max version", this is unfortunally very far from this script and much harder to do. If it were possible to store a maxfile in a Ascii format then I guess it would be possible to do some workarounds like you can do in Maya. But as far as I know it is not possible to store the native maxfile in anyting other than binary..

But I would be very glad if someone proved me wrong since it would be a function that I too have wanted for a long time.

OgmaSoul3D
Anton Berg
anton[at]os3d.se

OgmaSoul3D
Anton Berg
anton[at]os3d.se

jinj's picture

hi, nice script. would it be

hi, nice script.
would it be possible to ad a function like " save as *.max for older max version? example from 2009 to 2008 or to max7
jinj

asylum's picture

Yes exactly... I am really

Yes exactly... I am really hoping this script is ready soon.. it will be a life saver.. especially for the game devs out there..

Asylum

horo's picture

Yeah exactly, if groups are

Yeah exactly,
if groups are complicated, u could add something like this

http://www.scriptspot.com/forums/3ds-max/scripts-wanted/export-selected

Anton Berg's picture

hmm interesting.... I will

hmm interesting.... I will see if I can make the group option. I really hate the group support in maxscript. I am looking forward to the new container functions that will hopefully solve a lot of the group problems max have today..

Just to be clear, you mean like this:
I have for example a group where all the parts of the groups are individually animated.

Select the group and press export 100 frames. You will only get 100 files with all the parts in that group in one file.

OgmaSoul3D
Anton Berg
anton[at]os3d.se

OgmaSoul3D
Anton Berg
anton[at]os3d.se

horo's picture

n1 script -D maybe add group

n1 script -D

maybe add group support? like i have an animation of 100 frames = 100 files

Comment viewing options

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