it's a macro for notepad++ . i'm on holiday right now...if i can load it from remote i'll post the regex that change all the retraction =) please be patient some days!thews wrote:Can you post your script to modify the gcode?
theray wrote:Got the same problem with a Rostock Max v2. I found the same workaround works but i can't change all the retractions by hand so i had to make a little gcode translator for modifing these lines... I would like to see a check box on the print settings that allow to choose the standard retraction system or the one explained here. Rectraction and next move merged in the same line.
No problem.theray wrote:it's a macro for notepad++ . i'm on holiday right now...if i can load it from remote i'll post the regex that change all the retraction =) please be patient some days!thews wrote:Can you post your script to modify the gcode?
theray wrote:Got the same problem with a Rostock Max v2. I found the same workaround works but i can't change all the retractions by hand so i had to make a little gcode translator for modifing these lines... I would like to see a check box on the print settings that allow to choose the standard retraction system or the one explained here. Rectraction and next move merged in the same line.
Nice job mate...you may have spent time working on it but i think this way you've understood the problem, analyzed and then solved yourself. That's the way you "LEARN" something, not apply someone else solution.thews wrote:theray wrote:No problem.thews wrote:Can you post your script to modify the gcode?
it's a macro for notepad++ . i'm on holiday right now...if i can load it from remote i'll post the regex that change all the retraction =) please be patient some days!
I went ahead and wrote a small ruby script for it.
https://gist.github.com/justinledwards/ ... 9066c4726f
I could have spent time and made it rewrite the file to the same location, but I am a bit too lazy for that so you have to use it like ./script "filepath.here" > newfile.gcode
instructions are in the comments at the top of the script:JFettig wrote:I'm surprised this thread is so old and they haven't done anything about it!
Any tips on how to run that ruby script? I've installed NP++ and Ruby, definitely not much of a programmer.
Code: Select all
#filepath = "/home/user/whatever.gcode"
#chmod +x this file
# ./thisfile.rb "/file/path.here" > "/new/file.path"