0
$\begingroup$

When I export my mesh from Blender, it exports the texture even when I disable it, but only if the texture is packed into the file. It is not exported if the textures are unpacked. 'use_texture_copies=False'

bpy.ops.wm.collada_export(filepath="game/assembly/export/mesh.dae",
                      selected=True, check_existing=False,
                      use_texture_copies=False,
                      export_global_forward_selection="-Z",
                      export_global_up_selection="Y")

This what I should be seeing.

Blender 2.83.5 (hash c2b144df395f built 2020-08-19 06:05:02)
Read prefs: /home/jesse/.config/blender/2.83/config/userpref.blend
/run/user/1000/gvfs/ non-existent directory
found bundled python: /home/jesse/blender-2.83/blender-2.83.5-linux64/2.83/python
Read blend: /mnt/game-dev/qsw/test-cube-subdir/test-cube.blend
object: Plane
found material: Material.001
warning: material is missing texture channel 'Emissive'
qbs: exported image 'game/assembly/export/materials/material.001/albedo.png'
qbs: exported image 'game/assembly/export/materials/material.001/roughness.png'
qbs: exported image 'game/assembly/export/materials/material.001/normal.png'
**Collada export: Added image:**
Collada export to: game/assembly/export/mesh.dae
Info: Exported 1 Objects**
Info: Exported 1 Objects
Error: Not freed memory blocks: 7, total unfreed memory 0.002380 MB

Blender quit

This is what I actually see

$ blender test-cube-packed/test-cube.blend --background --python tools/qbs-export.blend.py

Blender 2.83.5 (hash c2b144df395f built 2020-08-19 06:05:02)
Read prefs: /home/jesse/.config/blender/2.83/config/userpref.blend
/run/user/1000/gvfs/ non-existent directory
found bundled python: /home/jesse/blender-2.83/blender-2.83.5-linux64/2.83/python
Read blend: /mnt/game-dev/qsw/test-cube-packed/test-cube.blend
object: Plane
found material: Material.001
Error: Unable to pack file, source path '/mnt/game-dev/qsw/test-cube-packed/textures/Material Base Color' not found
ERROR: Image "//textures/Material Base Color" not available. Keeping packed image
Error: Unable to pack file, source path '/mnt/game-dev/qsw/test-cube-packed/textures/Material.001 Roughness' not found
ERROR: Image "//textures/Material.001 Roughness" not available. Keeping packed image
warning: material is missing texture channel 'Emissive'
qbs: exported image 'game/assembly/export/materials/material.001/albedo.png'
qbs: exported image 'game/assembly/export/materials/material.001/roughness.png'
qbs: exported image 'game/assembly/export/materials/material.001/normal.png'
**Collada export: Added image: materials/material.001/albedo.png** WRONG - use_texture_copies=False
Collada export to: game/assembly/export/mesh.dae
Info: Exported 1 Objects
Info: Exported 1 Objects
Error: Not freed memory blocks: 7, total unfreed memory 0.002380 MB

Blender quit
$\endgroup$

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.