30350n / pcb2blender

KiCad to Blender 3D model workflow
GNU General Public License v3.0
551 stars 12 forks source link

3D models with relative paths not supported #78

Open hraftery opened 3 weeks ago

hraftery commented 3 weeks ago

My KiCad footprint libraries use this feature, which was added a couple of years ago. To wit, the path to the 3D model for a footprint in my library is relative to the location of the footprint.

It seems this triggers:

Failed to retrieve file times for '' (error 2: No such file or directory)"

when running the plugin. The message is repeated 8 times, which happens to be the number of 3D models in my project.

The output file is still generated, and it even has 3d models, but... they're all the same!

Manually updating each footprint to an absolute path gives the expected results.

PS. Awesome plugin, much appreciated.

30350n commented 3 weeks ago

Hi, thanks for reporting this, I think this might not be an issue with this addon though.

All the exporter does is basically call KiCad's VRML exporter with Copy 3D model files to 3D model path enabled, serialize a bunch of other metadata and pack everything into a zip file.

I'm fairly confident that you'll get the same errors if you just use the VRML exporter from the PCB Editor UI. If so, it'd be best if you'd report this at https://gitlab.com/kicad/code/kicad/-/issues.

hraftery commented 3 weeks ago

Right you are. And I found the issue already exists.

Cheers.

set-soft commented 3 weeks ago

Right you are. And I found the issue already exists.

Cheers.

Yes, and I'll suggest to @30350n to upvote it, I reported it for KiCad 7 and Seth tagged it as "low-priority" (most probably because he didn't understand how bad the bag is)