Skip to content
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

[BUG] jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'polygon' #105

Open
lettore opened this issue Jun 8, 2024 · 4 comments

Comments

@lettore
Copy link

lettore commented Jun 8, 2024

Following this guide , adding the suggested code in Orca Slicer and printing the print stop caused by error !! Error evaluating 'gcode_macro _OBICO_LAYER_CHANGE:gcode': jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'polygon', Orca Slicer and Moonraker Obico are at latest version.

@kennethjiang
Copy link
Contributor

Can you attach the gcode file to this issue?

I'm currently on vacation until 6/20. But I will take a look once I'm back.

@lettore
Copy link
Author

lettore commented Jun 9, 2024

This is what I added in Orca Slicer
_OBICO_LAYER_CHANGE CURRENT_LAYER={layer_num + 1} MINX=[first_layer_print_min_0] MINY=[first_layer_print_min_1] MAXX=[first_layer_print_max_0] MAXY=[first_layer_print_max_1]
and this is the result in Gcode.
_OBICO_LAYER_CHANGE CURRENT_LAYER=1 MINX=52.5576 MINY=27.0948 MAXX=173.881 MAXY=197.905
no need to add the rest of Gcode as the error is just from this macro

@kennethjiang
Copy link
Contributor

I'm on vacation rn with very bad internet connection. Will try it when I'm back home next week.

@kennethjiang
Copy link
Contributor

Sorry for the delay. Finally got a chance to look at it. I tested a similar case with v2.0.2 but couldn't reproduce this problem.

If you are on an older version, can you update to v2.0.2 and test it again? @lettore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants