Coder Social home page Coder Social logo

Comments (10)

Ghostkeeper avatar Ghostkeeper commented on July 24, 2024

Hi! Thanks for reporting the bug here.

From what I can see, this means that context.scene.objects or context.selected_objects contained a None object, which is not expected according to Blender's API. I'm also unable to reproduce this myself.

I could make it ignore those invalid objects, but the issue might indicate that something deeper is going wrong. If that's the case the export is likely going to be incomplete.

One way in which I could perhaps better reproduce the problem is if you'd save the .blend file from when you export the object. Right before or right after you get this error message, doesn't matter. This should reproduce the entire Blender scene and hopefully allows me to get that same error message then. Once I have that I can dig into the code to see what's going wrong, where exactly this None object comes from.

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

from blender3mfformat.

Ghostkeeper avatar Ghostkeeper commented on July 24, 2024

Attachments to e-mail replies don't get published here, I'm afraid. Could you visit your original issue report on the Github website and post it here? #35

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

Apologies - time zone issues. I attach the three files as requested.

testBlender.zip

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

Further information. If I export a shape generated within Blender, it works fine. If I import an stl file, and then export in 3mf format, it is also fine. However, if I import a 3mf file, then re-export it, the problem occurs. This is an observation based on three simple files (attached), not an extensive test.
best wishes,
VJM
testBlender2.zip

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

from blender3mfformat.

Ghostkeeper avatar Ghostkeeper commented on July 24, 2024

Sorry, I'm a bit behind on my notifications. It seems like the last upload contains all the information I could want for, so thanks :) I'll probably find some time to work on the plug-in next weekend, and I'll try debugging this too then.

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

from blender3mfformat.

Ghostkeeper avatar Ghostkeeper commented on July 24, 2024

I was able to find the culprit and fix this bug. Thanks for the help!

I'm not planning to release a new version until this add-on is either accepted or denied by Blender in their add-on repository. It's taking a long time to get it through though. If you need it fixed for yourself, you can take this file and use it to replace the export_3mf.py file with the same name in the folder you installed this add-on with.

from blender3mfformat.

VJM100 avatar VJM100 commented on July 24, 2024

from blender3mfformat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.