From: Simon (GRIMMY)
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
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
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
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)
Hi, I just read this 2 months later :) Thanks very much for this!! It will be very useful!!
From: r2d3
Actualy 3 month later ;-)