makertum / multi-extrusion-post-processing-scripts-for-slic3r Goto Github PK
View Code? Open in Web Editor NEWuseful postprocessing scripts for Slic3r, mostly adding dual extrusion features
useful postprocessing scripts for Slic3r, mostly adding dual extrusion features
After setting up Perl on Windows Server 2012 R2 (equivalent of 8.1), with Strawberry Perl, I had Slic3r spit out these two errors to Repetier Host.
13:49:13.287 : <Slic3r> Argument "" isn't numeric in multiplication (*) at G:\Downloads\Multi-Extrusion-post-processing-scripts-for-Slic3r-master\wipe_towers_v02.pl line 761, <> line 25.
13:49:13.288 : <Slic3r> Argument "" isn't numeric in multiplication (*) at G:\Downloads\Multi-Extrusion-post-processing-scripts-for-Slic3r-master\wipe_towers_v02.pl line 764, <> line 26.
When running this script in Slic3r 1.2.9, slic3r hangs at "running post-processing scripts". I've had some serious issues with the perl intepreter not working, but this script seems to work from the command line. What should be the program used to open .pl scripts like this one? I have it set to perl.exe, should it be wperl.exe? For whatever reason, it just doesn't seem to really work. I'm not sure this is really an issue, but I've looked everywhere I could and tried my very best google-fu. I'm using strawberry perl, and have had some weird issues with getting it to run any sort of script in general. It usually just pops up an empty console window when I double click a perl script.
Any help would be greatly appreciated. I've tried to fix whatever's going on as best as I could, but figured going to the source could be my very last step if I got truly stuck. Thanks.
Hi,
the first layer prints too fast causing a poor adhesion so a new parameter like first_layer_speed or so would be nice.
The bed_size_X and bed_size_Y variables are not available in Slic3r 1.2.9 and so do not get substituted into the template Start GCODE. Works fine with Slic3r 1.1.7 so these must have been removed for some reason.
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."
Hi,
I tried your scripts, but I can’t find any wipe towers on Repetier print preview. I used wipe_towers_tc_v02.pl, copied it to a folder named test dual(D:\test dual) and followed everything as per instruction on GitHub
Can you tell me what’s wrong?
Here’s the screen shots
https://drive.google.com/open?id=0B5_IWI68ZqZTUWZCZzlmay1mVGc
A small Overview to fix Errors into v02:
1) Can’t do inplace edit without backup at R:\Wipetowers\wipe_towers_v02.pl line 98.
Simply add that: $^I = ‘.bak’; into your Script. It should look like that:
`##########
$^I = ‘.bak’;
while () {
if($start==0){`
2) R:\Wipetowers\wipe_towers_v02.pl line 759, line 21.
Argument “” isn’t numeric in multiplication (*) at R:\Wipetowers\wipe_towers_v02.pl line 762, line 22.
Edit your Start G-Code and replace
; bedWidth=[bed_size_X]
; bedDepth=[bed_size_Y]
with
; bedWidth=200 (Put in here the bedWidth you have)
; bedDepth=200 (Put in here the bedDepth you have)
3) The Script does nothing
Perl installed?
If yes: Generate G-Code with Sclic3r -> Open Command-Shell (cmd) and enter the following:
Perl PathToYourScript\wipe_towers_v02.pl PathToYourG-code\filename.gcode
Hope it helps
Siggi
I like the idea of this script, and have been trying to understand how it works. So far my towers are not getting extruded because the lengths are all zero. Snippet of the post-processed GCODE:
; printing square tower with layer height 0.206
G1 X98 Y173 F7800
G1 X98 Y173 F7800
; printing brim
G1 X100 Y175 F7800
G1 E0 F6000
G1 X100 Y185 E0 F3600
G1 X110 Y185 E0 F3600
G1 X110 Y175 E0 F3600
G1 X100 Y175 E0 F3600
G1 X100 Y175 F7800
…
These zero-length extrusions are present for the entire file.
Initial GCODE generated with Slic3r 1.2.9, and this is reproducible with any input object. I haven't yet figured out the full logic flow of the script to understand where the issue is, any hints would be appreciated.
(Sorry for the terrible description)
When I run the gcode through the post processor I get this error. I've tried trimming down my gcode to the bare minimum, but no luck.
I am running the latest version of ActivePerl for Windows(10) and I am slicing using Slic3r. This is the error I receive.
D:\Users\james_000\Downloads>"wipe_towers_v01.pl" Hollow_Face_Dragon4.gcode
Bareword found where operator expected at D:\Users\james_000\Downloads\wipe_towe
rs_v01.pl line 5, near ""en" class"
(Missing operator before class?)
Bareword found where operator expected at D:\Users\james_000\Downloads\wipe_towe
rs_v01.pl line 13, near "<title>Multi"
(Missing operator before Multi?)
Can't modify numeric lt (<) in scalar assignment at D:\Users\james_000\Downloads
\wipe_towers_v01.pl line 5, near ""en" class"
syntax error at D:\Users\james_000\Downloads\wipe_towers_v01.pl line 5, near ""e
n" class"
Unrecognized character \xC2; marked by <-- HERE after at master <-- HERE near co
lumn 92 at D:\Users\james_000\Downloads\wipe_towers_v01.pl line 13.
I was going to attach gocde, but it is too big. Let me know if you'd like me to email it.
Thanks for all your help, this should be implimented in Slic3r for sure!!!
Hi,
wipe_towers_v02.pl generates wrong travel values for me i don't know if it depends on a special version i use the version visible in the top line of the files in the attached zip. The values are huge like "G1 X-555 Y855 E70345.1856 F3000". The way i can maximum travel is X180xY180 so i took that as values for the bedWidth/bedDepth or should take the real size of the bed (x=210.40 y=200.50)? The second extruder can reach 16mm over 180 on the X-axis so using the real bed values seems wrong. Maybe is it better to call bedWidth/bedDepth XMax/YMax or so then if it refers to the travel maximum. To print to the maximum possible bed X size a new parameter like extruder_offset would be needed and error messages or so if the towers are placed somewhere outside the range of the extruder in my case the offset is 32 so the ranges are for extruder1 0 till 180-16 and for extruder2 0+32 till 180+16.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.