MoI discussion forum
MoI discussion forum

Full Version: Batch Export Operation

From: Simon (GRIMMY)
6 Jun 2018   [#1]
Hi all, I have a habit of creating lots of models within the same file and then when it comes to export it means that I need to manually place each one at 0,0,0 before hitting the export button in order to get the pivot at the correct location in the resulting .obj file.

Is there a way I can speed this up with some script command or any pointers on how I could write my own batch file to do this kind of thing?

Many Thanks
Simon
From: Michael Gibson
6 Jun 2018   [#2] In reply to [#1]
Hi Simon, there is a CenterAtOrigin script here: http://moi3d.com/forum/index.php?webtag=MOI&msg=2409.2

Instructions for installing a plug-in are here: http://moi3d.com/wiki/FAQ#Q:_How_do_I_install_a_plug-in_script.3F

That probably doesn't do quite exactly what you want because with multiple objects selected it moves everything as one big block rather than each object individually. But if it does what you need with one object that should not be difficult to modify for you.

Then for the export, do you export all these objects in just one .obj file or do you want something like a separate file for each one?

- Michael
From: r2d3
7 Jun 2018   [#3] In reply to [#1]
Hi Simon,
there is a batch export script that i wrote to export multiple parts to stl format (other formats possible).
Every part you export has to have a unique name.
It doesnt change the origin befor export but this shouldnt be a big thing if you are familar with scripting MOI.

Best you follow this discussion:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8582.1
From: r2d3
11 Jun 2018   [#4] In reply to [#1]
I just enhanced my script with a checkbox. Now you can choose to set the object to origin before export...
Hope thats usefull

Attachments:
exportparts_origin.zip


From: Simon (GRIMMY)
17 Sep 2018   [#5] In reply to [#4]
Hi, I just read this 2 months later :) Thanks very much for this!! It will be very useful!!
From: r2d3
17 Sep 2018   [#6] In reply to [#5]
Actualy 3 month later ;-)