lkeppner
Posts: 27
Joined: Sun Aug 10, 2014 10:58 pm

Re: Wipe While Retracting...

Wed Aug 13, 2014 1:43 pm

+1

theray
Posts: 9
Joined: Mon Jun 09, 2014 7:26 am

Re: Wipe While Retracting...

Thu Aug 14, 2014 4:01 am

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!

thews
Posts: 6
Joined: Tue Jun 24, 2014 9:11 am

Re: Wipe While Retracting...

Fri Aug 15, 2014 11:03 am

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

theray
Posts: 9
Joined: Mon Jun 09, 2014 7:26 am

Re: Wipe While Retracting...

Sun Aug 24, 2014 9:47 am

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

RapApp
Posts: 3
Joined: Fri Feb 21, 2014 7:09 am

Re: Wipe While Retracting...

Fri Oct 24, 2014 7:04 am

+1

Bubolz
Posts: 10
Joined: Tue Dec 23, 2014 5:07 pm

Re: Wipe While Retracting...

Fri Feb 06, 2015 1:26 pm

Blobs in S3D is a chronic and recurrent problem... this fix should have been introduced in the last update! :cry:

+1

laird
Posts: 103
Joined: Wed Sep 18, 2013 1:20 pm

Re: Wipe While Retracting...

Sun Feb 08, 2015 1:57 pm

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?

'hannoHI
Posts: 8
Joined: Tue Feb 10, 2015 4:46 am

Re: Wipe While Retracting...

Tue Feb 10, 2015 6:06 am

+1

JFettig
Posts: 72
Joined: Tue Dec 30, 2014 3:13 pm

Re: Wipe While Retracting...

Thu Feb 12, 2015 7:57 pm

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.

User avatar
TenKOhms
Posts: 172
Joined: Wed May 14, 2014 3:04 pm

Re: Wipe While Retracting...

Thu Feb 12, 2015 10:13 pm

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"

Return to “Troubleshooting and Bug Reports”