Page 3 of 5

Re: Wipe While Retracting...

Posted: Wed Aug 13, 2014 1:43 pm
by lkeppner
+1

Re: Wipe While Retracting...

Posted: Thu Aug 14, 2014 4:01 am
by theray
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.
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!

Re: Wipe While Retracting...

Posted: Fri Aug 15, 2014 11:03 am
by thews
theray wrote:
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.
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!
No problem.

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

Re: Wipe While Retracting...

Posted: Sun Aug 24, 2014 9:47 am
by theray
thews wrote:
theray wrote:
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!
No problem.

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
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.

However i would change the regex you use because if you change the retraction speed on simplify, you would have to change the code of your script and i think you change that settings when changing material from abs/pla to nylon or some other particular filament...

Re: Wipe While Retracting...

Posted: Fri Oct 24, 2014 7:04 am
by RapApp
+1

Re: Wipe While Retracting...

Posted: Fri Feb 06, 2015 1:26 pm
by Bubolz
Blobs in S3D is a chronic and recurrent problem... this fix should have been introduced in the last update! :cry:

+1

Re: Wipe While Retracting...

Posted: Sun Feb 08, 2015 1:57 pm
by laird
After running gcode through this script, I can load it into S3G to preview, but it doesn't appear to generate the .x3g file for it. Any suggestions?

Re: Wipe While Retracting...

Posted: Tue Feb 10, 2015 6:06 am
by 'hannoHI
+1

Re: Wipe While Retracting...

Posted: Thu Feb 12, 2015 7:57 pm
by JFettig
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.

Re: Wipe While Retracting...

Posted: Thu Feb 12, 2015 10:13 pm
by TenKOhms
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.
instructions are in the comments at the top of the script:

Code: Select all

#filepath = "/home/user/whatever.gcode"
 
#chmod +x this file
# ./thisfile.rb "/file/path.here" > "/new/file.path"