-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'dict object' has no attribute 'polygon' #14679
Comments
I discovered a difference. and Cura 5.3 Beta1 writes: into the gcode file |
Ok |
What's new is in the gcode the name=nomesh object gets added: EXCLUDE_OBJECT_DEFINE NAME=3dbenchy_stl CENTER=169.468,167.494 POLYGON=[[137.691,152.25],[137.691,182.746],[197.304,182.746],[197.304,152.25]] in klipper the printer.exclude_object.objects | map(attribute='polygon') doesn't like the nomesh because it has no polygon attribute |
This causes some major issues with Klipper indeed (like breaking Adaptive Meshing). |
Its a Typo in CuraEngine |
A workaround is to use the search and replace post processing script search NOMESH |
no, it's not (just) a spelling error the adaptive_mesh macro contains A workaround would be removing "EXCLUDE_OBJECT_DEFINE NAME=NOMESH" from the gcode |
I just found out that it's not cura who generates the EXCLUDE_OBJECT_DEFINE-gcode but that klipper adds it to the gcode at upload. But why does klipper suddenly see two objects where before it only saw one? |
For me, renaming works in the GCode that Cura generates. This must of course be done before sending it to the printer. Changing the GCode in Mainsail / Fluid does nothing, it has to be changed in the original gcode |
if i save the gcode that cura generates to a file, there is no mentioning of a EXCLUDE_OBJECT_DEFINE. |
Yes. In the saved gcode, change NOMESH to NONMESH |
Ah ok, I didn't know that. |
No, just replace NOMESH Cura -> Menu -> Extensions -> Post Processing -> Modify GCode Then Add a Script -> Search and Replace thats all |
Right, I see! Thanks! |
@ckvsoft Worked for me! Thanks |
Hey All, Sorry, it took us a while to get back to you 😞 I'll bring it up to the team to see what they can do to improve it. Fingers crossed that we can share a fix soon🤞 |
fixed in CuraEngine #1855 |
SO DOES ANYONE KNOW WHY THE CURA 5.3.0 has been out for a minute but they have not released 5.3.1 with the typo fixed so we can continue using KAMP without modify g code? |
Hey @Extrusions3D, Cura 5.3.1 should be available. 🎉 We had a delay because implementing the updated translations seemed to be more work than we anticipated. 😞 |
superslicer has this same issue Error evaluating 'gcode_macro BED_MESH_CALIBRATE:gcode': UndefinedError: 'dict object' has no attribute 'polygon' |
That's already fixed in Cura. Superslicer does not depend on Cura. |
The fix is NOT just a typo... ALL of you have ignore the 1 user who acually found the issue. martinziener found the issue and all of you never care about the actual fix. Remove EXCLUDE_OBJECT_DEFINE NAME=NOMESH or if you renamed it EXCLUDE_OBJECT_DEFINE NAME=NONMESH |
Hey @hypersmc, We see that there is a rise in 3D printers that are running Klipper firmware. As UltiMaker employees we focus on the motion controller that our UltiMaker printers use. So we are less exposed to the finer details of Klipper. But we are interested and want Cura and Klipper to work smoothly together. We are collecting input on how we can make Cura better for Klipper printers. If you have some feedback, we would love to hear about it here: #16012 |
FYI: KAMP and GCode Preview work correctly for me in Cura 5.6.0, with fluidd (klipper) |
Cura 5.6. have incorect EXCLUDE_OBJECT_DEFINE NAME for me. Kamps doesent work with cura on klipper. orca slicer works |
Application Version
5.3 Beta Appimage
Platform
Ubuntu 20.04
Printer
everyone
Reproduction steps
Slice, upload to printer and use exclude objects map
Actual results
"BED_MESH_CALIBRATE 'dict object' has no attribute 'polygon'"
Expected results
.
Checklist of files to include
Additional information & file uploads
With 5.3 Beta 1 I have the problem that exclude objects no longer works. Is this a bug or was it changed on purpose?
With version 5.2 everything works with the 5.3 Beta1 I get the error in klipper or also via Octoprint: dict object' has no attribute 'polygon'
Unfortunately I can't describe it any better.
The text was updated successfully, but these errors were encountered: