I made a python script witch generates the meshes in a loop, and I would like to export them one-by-one in .obj (one obj for one mesh). Now I’m try with the scriptcontext.doc.WriteFile(), but it pops up a the ‘OBJ Export Options’ window. It is not goot for me, because I would like to generate many thousands of objects, and I don’t want to click the ok every time ;).
Do you know a better method to batching the .obj export?
one way is to use rs.Command instead and script the _-Export command to suppress the dialog. Make shure (only) the object to export is selected via your script, then use something like this:
Hi Viktor, if it is a mesh allready, Rhino cannot remesh it on export. It just shows you the message “Meshing…Press ESC to cancel” but your mesh will stay the same. You can prove it by re-importing an exported mesh. It should be identical to the source.
Btw. To get rid of the commandline clutter, you can turn command echoing off like this: