1
$\begingroup$

Hi there for a while now we are building stuff on sketchup (cause we love the simplicity of the tool :o )

But we still use blender for exportation purpose on THREE.js

So the actual workflow is to export in .dae with SketchUp8 and then import in blender, group all the elements with ctrl+J (it avoids material duplication)

Sometimes we also have to slightly rename the materials (cause they are renamed MATERIAL_NAME.001, MATERIAL_NAME.002 and we don't want this)

Then we export the object as is in .js format with the THREE.js exporter plugin.

As you can see it's a pretty tedious task. Is there an easy way to automate this through the CLI ?

Thanks

$\endgroup$
1
  • $\begingroup$ Can you go into more detail as to how you deal with the materials, with that it shouldn't take long to write a script that does this. $\endgroup$
    – iKlsR
    Oct 24, 2014 at 12:51

1 Answer 1

1
$\begingroup$

You could prepare a Blender file with a text block that contains the python script with all the command you need (import, convert materials name, export...). Then you can type:

your/blender/path/blender -b blendertemplate.blend --python-text pythontextname

$\endgroup$
1
  • $\begingroup$ It was long ago, but yes the answer was to create a script. $\endgroup$
    – StackHola
    Jan 19 at 21:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .