1
$\begingroup$

I'm using Blender python api as one part of a larger pipeline, to convert between Collada versions (1.5 --> 1.4). The simple script is this:

import bpy
import sys

argv = sys.argv

dae_in = argv[4]
dae_out = argv[5]

bpy.ops.wm.collada_import(filepath=dae_in)
bpy.ops.wm.collada_export(filepath=dae_out)

This little scriptlet is itself wrapped in a bigger subprocess call in a much longer script, farming it out to Blender's python instance to handle just this conversion piece.

It works fine but somewhat amusingly, even a background instance of blender appears to still load the default cube model into memory.

What is the command line option to get a background instance of blender without the cube?

$\endgroup$
3
  • 1
    $\begingroup$ Related blender.stackexchange.com/a/219252/15543 $\endgroup$ – batFINGER Jun 17 at 8:39
  • 1
    $\begingroup$ why don't you just delete the default cube with python!? $\endgroup$ – Chris Jun 17 at 12:26
  • $\begingroup$ Hi Chris, that sounds GREAT. Why don't you tell me how to do that with an example? $\endgroup$ – auslander Jun 17 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.