Yeap!
function Convert( FileName )
{
var gd = moi.geometryDatabase;
// Open the file, set 2nd param to true to suppress any save changes prompt.
gd.open( FileName, true );
// Create the output file name by breaking off the file extension and adding 'obj'.
OBJFileName = FileName.substr( 0, FileName.lastIndexOf('.') + 1 ) + 'obj';
// Save out to the output file, passing the option to suppress the UI. You
// add other options separated by semi-colons with no spaces. These
// options are available for controlling the meshing:
// NoUI=true
// Angle=12.0
// Output=ngons | quads | triangles
// MaxLength=0.0
// MaxLengthApplyTo=curved | planes | all
// MinLength=0.0
// AspectRatio=0.0
// Weld=true
// Display=shadedwithedges | shadednoedges | wireframe
// ExpandedDialog=false
NoUI=true
Angle=1
Output=1
MaxLength=0.0
MaxLengthApplyTo=1
MinLength=0.0
AspectRatio=0.0
Weld=true
// Display=shadedwithedges | shadednoedges | wireframe
// ExpandedDialog=false
gd.saveAs( OBJFileName, 'NoUI=true' );
// Let's clear out and suppress any save changes prompt again.
gd.fileNew( true );
}
it's the script from the link you posted, I gave it a try to see how it was working, and it fit my need :)
|