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.
Anton Berg's picture

The grouping should solve it for for you...

I tried it now and it should work for you... if you group all objects into ONE group then that whole group should be exported as one obj file called
"groupName-frame00001.obj" I do not get a separate file for all the objects in the scene.

Or are you talking about getting "one mesh" object inside realflow, not many different objects.

OgmaSoul3D
Anton Berg
anton[at]os3d.se

W DIGITAL's picture

thanks, but groups are

thanks, but groups are exported as single objs as well,
no the goal is to have one obj sequence of all the mesh combined, this we need in realflow to scatter prticles on,

is there anything you can do to help us get multiple mesh into ONE obj sequence? (attaching multiplemesh tends to destroy the animation, unless u know otherwise)

thanks, would be great to have ONE OBJ sEQUENCE of the scene

Anton Berg's picture

a temporary solution is to group the objects you want to export.

I put alot of work so it does just that... aka exports every object as a separate obj sequence... since that was the need to import the objs into houdini...

But I think might be possible. Will take some work though.

One thing you can do (which you might not like). you can group all the objects that should be exported as one obj and then do the export. The script should support groups. I know that groups and animation can be very messy... so ungroup after export.

OgmaSoul3D
Anton Berg
anton[at]os3d.se

W DIGITAL's picture

ok works great now but please

ok works great now

but please tell me, how can we make ONE obj sequence with all the mesh inside, this is very important for a realflow workflow,

please let me know if you can get that to work

Anton Berg's picture

Ok try the new version...

try the new version v11

OgmaSoul3D
Anton Berg
anton[at]os3d.se

W DIGITAL's picture

ok, now that works but when i

ok, now that works

but when i do file type, ObjExp

it says on each frame while exporting, cannot determine file type and then it doesnt write anything

Anton Berg's picture

I think I found it... download version 1.0 instead

I think I found the bug, download the new version instead

OgmaSoul3D
Anton Berg
anton[at]os3d.se

W DIGITAL's picture

hi, great script but i cant

hi, great script but i cant use it, hitting -browse output path
does not allow me to select a directory, and so i cant export animated objects
thanks for the help

horo's picture

I think i found a workaround

I think i found a workaround way.
U can affect the export with the Animation slider "Start Time"

maybe possible?

Anton Berg's picture

Yes it seems like the ASE

Yes it seems like the ASE format doesnt work properly. I unfortunally can not find a way to control the settings in the interfaces for every plugin that opens since those have not been exposed to maxscript (which is a big pity).

So I really cant think of any way to fix this now. But if someone reads this and knows a way, please tell me!´

I know that one could write a totally new ASE exporter totally written in maxscript, but I dont have the knowledge or time to do this now!

OgmaSoul3D
Anton Berg
anton[at]os3d.se

Comment viewing options

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