3dmax export all selected objects to seperate OBJ files

Hi,

I think this would be a very practical and simple script to write. Basically, when I switch from max to zbrush.. I want all objects selected in max, exported to SEPARATE obj files and maybe a prompt to enter in each file name(or possibly a keyword i.e "character" then saves each sequentially character1 character2 etc). This would save quite a bit of time when you have a character with lots of pieces to export.

If you know of a script or are interested in making one like this let me know!

Thanks

JP
[email protected]

Comments

Comment viewing options

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

Hi, I have been looking for

Hi,

I have been looking for a script like this for a while. I am however a complete beginner to using/editing these and am having an issue when using it.

I drag the script into 3ds max.
Select the objects i wish to export.
Change the file type to STL
Unselect prefix box
press export, select directory and press ok

An error then appears "no get function for undefined"

What am i doing wrong?

Any help would be much appreciated

Thanks

Anton Berg's picture

Ok I made a new version

Ok I made a new version which includes a dropDownlist of all the export formats that you have installed in your max.

I do NOT gurantee that this script works 100% with all different fileformats. I noticied that I had to choose "export selected only" in certain export dialogs.

I also saw that some formats that is shown in list doesent work at all.

But try it out, it might work for you and the good part is that it is 100% free ;-)

AttachmentSize
OS3D_ExportOBJ_V03.ms 2.29 KB
OS3D_ExportOBJ_V02.jpg 51.73 KB

OgmaSoul3D
Anton Berg
anton[at]os3d.se

Anton Berg's picture

Thanks for that bug find!! I

Thanks for that bug find!! I have uploaded a new version of the script.

And I wonder I shouldn´t make a more generic interface so you could export "any" available fileformat.

AttachmentSize
OS3D_ExportOBJ_V02.ms 1.94 KB

OgmaSoul3D
Anton Berg
anton[at]os3d.se

Anton Berg's picture

This is script that is made

This is script that is made in 3dsmax 2009 I am not 100% certain that is works in older versions. I would highly recommend to get 3dsmax 2009 since they have upgraded the obj export plugin.

I made a small script that saves the selected 3dsmax objects as separate obj files.

try to just drag n drop the ms file onto 3dsmax to try it out.

workflow:
1. select objects
2. enter the prefix for the separate files
2.1 if you uncheck this the file will get the name of the object in 3dsmax
3. press export
3.1 after you pressed export you will select where to put the files.
3.2 for the first object you will get the export dialog so you can set the settings for the obj exporter and the same settings should be used for the rest of the exports.

I hope this works.

Happy Zbrushing!

AttachmentSize
OS3D_ExportOBJ_V01.ms 1.94 KB
OS3D_ExportOBJ_V01.jpg 32.4 KB

OgmaSoul3D
Anton Berg
anton[at]os3d.se

amsmntparks's picture

Thanks for this script! I

Thanks for this script! I was able to modify it to export .X files and it saved me hours of tedious work.

Just a note though, the script in it's current form will skip the second object. Just change the second check in btn1 from "if > "2 to "if > 1" and it will get them all.
Thanks again!

techmethod's picture

WOW. Thank you soo very much

WOW. Thank you soo very much Anton :P. The script works like a charm and you have created it exactly how I was envisioning
it!!

Thanks again,

JP

Comment viewing options

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