slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.34k stars 1.3k forks source link

Feature request - speed/temp/size changes@layers #1902

Open thormj opened 10 years ago

thormj commented 10 years ago

I found some nifty test objects on thiniverse (eg http://www.thingiverse.com/thing:211514), but they could be really enhanced if we could tag changes at layers (probably with another file), eg (or XML) 0, 220, 30, 25 , ... 10, 210, 30, 25, ... 20, 220, 60,25,....

That way you could have the customizer or a batch file create a corresponding "Settings File" that would enable you to print the Temperature Totem without having to manually edit the GCode file (and you could have the STL + Layer Profile apply to all machines [rostock, marlin, etc] instead of having to have a customized GCode for each).

I'd like to be able to set everything as I've found that for XT / T-Glase, I set my nozzle to 0.5mm and layer height to 0.4mm for maximum clarity. But that "overextrusion" causes severe sagging unless I boost the Brige speed and Solid Infill speeds to insanity (otherwise the solid top melts the bridge and re-sags it for me). OTOH, if I could change the extrude width back for the final layer...

lordofhyphens commented 8 years ago

Since everything is in the gcode, turn on verbose output and parse it with a script. Closing :)

lordofhyphens commented 8 years ago

Adding to the PR milestone and reopening if someone wants to get inventive with this.

What's occurred to me is that the modifier mesh helper I wrote may be additionally helpful here until the UI to auto-generate modifier meshes along different Z levels, as the extrusion width is one of those things you can change with a modifier mesh.

Set the initial offset in the OpenSCAD document to be the Z level of the top layer and the height to be basically one layer height (you're looking for a single large layer to get made), so that the modifier mesh overlaps with the top layer. Shouldn't take more than a minute or two to set up.

Some slightly more "advanced" OpenSCAD work would be to take your original model and subtract the areas you don't want to change from it.

vlast3k commented 8 years ago

maybe everybody has some script that solves this, but at least it took me few months until i decided to dig into it.. so maybe somebody else could use this as a starter. what i do is i downloaded: https://sites.google.com/site/regexreplace/ and then - a bat file that is executed from slic3r:

rxrepl -m line -a -f %1 --options "c:\Users\vladi\Mobile Docs\My
Documents\3d print\vStarter\test.options"

and test.options is:

-s (.*Z=0.3.*) -r |\0M104 S180\nM202 X250 Y250\nM201 X250 Y250\n|
-s (.*Z=0.6.*) -r |\0M104 S200\nM202 X1600 Y1600\nM201 X1650 Y1650\n|
-s (.*Z=1.5.*) -r |\0M104 S165\n|
-s (.*Z=1.8.*) -r |\0M104 S160\n;M201 X100 Y100\n|
-s (.*Z=3.3.*) -r |\0M104 S155\n|

and on each layer there is a GCode template

;New Layer [layer_num], Z=[layer_z], Zoffset=[z_offset]