Sorry to thread-hijack, but could I paste that G-Code into the ‘start’ block in other Cura slicers to get the nozzle cleaning and bed leveling abilities? I’m thinking specifically of the Cura deployment in OctoPrint. It’d be nice to be able to just upload STL files from anywhere and get the leveling/cleaning features.
First… This thread is over a year old, so some of the info above refers to older versions of Cura. Note that more recent versions automatically copy the quickprint settings to expert mode when choosing expert mode. Also note that the start gcode shown above has been updated a bit in newer versions of the Cura profiles.
The Cura Plugin for Octoprint will import a complete Cura profile, including all settings and start/end scripts (note: It has to be the .ini format; the new .json format in the development Cura is not supported).
Open Cura on your computer, choose a profile, go to Expert mode, make any changes you want, and save the profile (i.e., File, Save Profile) as an ini file. Or, if you don’t want to make any changes, you can just download the appropriate ini file directly from the Lulzbot web site. Next, open Octoprint and go to Settings, CuraEngine, “Import Profile…”, “Browse”. Choose the file and hit “Confirm” to upload it into Octoprint. Repeat the process for all the profiles you want to use.
Alternately, if you already have Cura profiles in octoprint… In theory, you can paste the preheat/wipe/level sequence into an existing profile stored at ./.octoprint/slicingProfiles/cura, but beware Octoprint stores those profiles in YAML format – which requires an extra blank line to terminate each line of the script. So after pasting the block of gcode into one of those files, you’d have to edit the file and add an extra blank line after each.