makertum / Multi-Extrusion-post-processing-scripts-for-Slic3r

useful postprocessing scripts for Slic3r, mostly adding dual extrusion features
24 stars 12 forks source link

<Slic3r> Can't do inplace edit without backup at C:\Program Files\Repetier-Host\Slic3r\Multi-Extrusion-scripts\wipe_towers_v02.pl line 98. #7

Open lemmingDev opened 8 years ago

lemmingDev commented 8 years ago

Script doesn't run on Windows "Can't do inplace edit without backup at C:\Program Files\Repetier-Host\Slic3r\Multi-Extrusion-scripts\wipe_towers_v02.pl line 98."

GFBsoul commented 8 years ago

I solved this by adding the fix from slic3r.org. It's written about at the bottom of this page. http://manual.slic3r.org/advanced/post-processing

If you are getting a can't do inplace edit without backup error when specifying the post-process script, try adding $^I = '.bak'; before the while loop. This will create a backup file of the generated G-Code file. Windows does not like to have two scripts creating and/or accessing a single file at once, so a backup is needed.

makertum commented 8 years ago

Thanks! I will look into this and try to provide a fix that works for mac and windows users!