Octolapse icon indicating copy to clipboard operation
Octolapse copied to clipboard

Octolapse only searches 1000 gcode lines, which fails with thumbnails

Open ondrejch opened this issue 3 years ago • 8 comments

When the thumbnail gcode is over 1000 lines, octolapse cannot detect the automatic settings provided by Cura. Maybe it should skip thumbnails before looking for the settings in gcode?

ondrejch avatar Jul 22 '22 15:07 ondrejch

I decreased my thumbnail size for this same reason You can also put the script in your end gcode

BalooDK avatar Aug 05 '22 20:08 BalooDK

I just patched the code, so it scans the whole GCODE file.

ondrejch avatar Aug 05 '22 20:08 ondrejch

@ondrejch how did you patch the code?

TrainAss avatar Sep 11 '22 04:09 TrainAss

Just increased the line limit.

ondrejch avatar Sep 11 '22 19:09 ondrejch

I'm not sure how to do that, sorry.

TrainAss avatar Sep 13 '22 01:09 TrainAss

Change the number in settings.py, lines with search_direction="both", max_forward_search=1000, max_reverse_search=1000

In my case: cura_preprocessor = settings_preprocessor.CuraSettingsProcessor( search_direction="both", max_forward_search=100000, max_reverse_search=1000 )

ondrejch avatar Sep 13 '22 14:09 ondrejch

Awesome, thank you very much!

TrainAss avatar Sep 14 '22 03:09 TrainAss

I presume this is the same issue I just saw - I only just enabled thumbnails and the moment I tried to print I got an error...

vaderag avatar Feb 11 '23 10:02 vaderag