I'm automatic some process using Python and Blender 2.8, but I'm having ussues importing Collada files.

If I do it manually all works, but by using bpy.ops.wm.collada_import(filepath=dae) the materials don't contain the textures. Because of this I'm pretty sure the file is fine and it doesn't contain any error.

I also tried with bpy.app.debug_wm = True to try to see which commands and in which order Blender executes when I do it manually, but no lucky either.

The documentation of the import function can be found here, and it doesn't show any parameter like a texture_path or similar.

Just in case I changed the working directory by using os.chdir() to where the collada file was, but that didn't work either.

I didn't find a solution nor in Google nor Stack Overflow nor Stackexchange.

Is there any way to given a path to a collada file, to import it with the textures?

Thanks in advance.


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.