Batch export from a file


(Mikolaj Jarski) #1

Does anyone has a script to batch export objects (meshes only) from a single Rhino file to separate STL files?

There are many batch export scripts around but I haven’t found this exact functionality.

Ideally it would be to specify export file name in first step, then choose export directory in second step and write files with incremental names (eg. name_001, name_002 …).


(Luis Fraguada) #2

It might be worth looking at @Helvetosaur’s scripted tools for Windows and Mac: http://wiki.mcneel.com/people/mitchheynick

I believe there might be an export to stl script in the new Mac Tools. The script should be pretty straightforward to test in Rhino for Windows and correct any errors if there are any.


#3

I was about to suggest that… :slight_smile: Below is the relevant script from the collection - exports selected objects one per file with a numbering scheme. Comes with 4 preset mesh densities. It can be adjusted to taste (different naming/numbering settings, different .stl settings) if you need… The default export location if the file has been saved is the current 3dm file’s folder. Should run on Mac or Win --Mitch

BatchExportSTLByObjWSett.py (3.7 KB)


Batch export command documentation
(Mikolaj Jarski) #4

Oh, I wasn’t aware there is more in MicMacTools than in MaqueTools I am using. Thanks!


#5

Hi, is there any script or solution for OBJ files (with textures)?
Btw, thanks for your tools, wonderful.


#6

Sorry, found it.