Giter VIP home page Giter VIP logo

slic3rpostprocessing's Introduction

Slic3r-Post-Processing

What it does

Post processing for PrusaSlicer, SuperSlicer and maybe Slic3r:

All-New Python Script:

In /SPP-Python/ is the Python-version of the "Cura"-move:

  1. Heat up, down nozzle and ooze at your discretion.
  2. Move to the first entry point on XYZ simultaneously.
    • Before: heat up, ooze, move to first layer height (Z), move to first start point (XY). This could lead to crashing the nozzle into the clips.
    • Now: heat up, ooze, move to first start point (XYZ). The Python version does not require the verbose mode enabled or any other changes to the Start-, End-, or Layer-code.

Only requirement: the gcode has to have ;HEIGHT:[layer_z] after G92 E0, or after Header G-Code. If you use a recent version of PrusaSlicer, you don't have to do anything. With Slic3r you'd have to add ;HEIGHT:[layer_z] to the "Before layer change G-Code" field.

Parameters for the Python Version

  • Option: --xy will move to X and Y first, then drops on Z (eases-in a bit: full speed to 15 times "first layer height", then at half speed to first layer height). Omitting this option will lead to XYZ simultaneous move to first point. This will still clear the clips on the Ultimaker 2 plate. If not, you'd have to edit your start gcode to place the nozzle somewhere "better" (i.e. in the center of the bed) first.
  • Option: --oc obscures slicer configuration at the end of the file. None of the settings will remain for anyone to see.
  • Option: --rk removes comments except configuration and real comments.
  • Option: --rak removes all comments.
  • Option: --backup Create a backup file, if True is passed. (Default: False).
  • Option: --filecounter adds a file counter (prefix) to the output file name.
  • Option: --rev reverse counter (count down).
  • Option: --setcounter int set counter manually to this [int].
  • Option: --digits int set counter's number of digits. I.e. 5 = 00123.
  • Option: --easeinfactor int Scale Factor for ease in on Z. Z moves fast to this point then slows down.Scales the first layer height by this factor.
  • Option: --notprusaslicer Pass argument for any other slicer (based on Slic3r) than PrusaSlicer.
  • Option: --craftwaretypes Pass argument if you want to view GCode in Craftware.
  • Option: --orc2ps Create comments, for OcrcaSlicer to be viewed in PrusaSlicer Viewer.
  • Option: --nomove If --nomove is provided, no changes to the Start-GCode will be made.
  • Option: --numlayer Adds total number of layers to slice-info of G-Code file.
  • Option: --prog If --prog is provided, a progress bar instead of layer number/percentage, will be added to your GCode file and displayed on your printer (M117).
  • Option: --proglayer If --proglayer is provided, progress is reported as layer number/of layers, (Default: False)
  • Option: --pwidth int Define the progress bar length in characters. You might need to adjust the default value. Allow two more chars for brackets. Example: [OOOOO.............].
  • Option: --pchar str Set progress bar character. (Default: O)
  • Required: GCode file name (will be provided by the Slicer; must be provided if used as standalone)

Installation

Add this line to your "Print Settings" under "Output options" to the "Post-Processing scrips" field: <path to python.exe> <path to script>\Slic3rPostProcessor.py;, or <path to python.exe> <path to script>\Slic3rPostProcessor.py --xy; (see above).

If you have one or more script active, add this to the correct spot (add new line). Scripts will be processed from top to bottom.

to use in Slic3r

  • The option verbose in Slic3r (Slic3r -> Print Settings -> Output options), needs to be set to true.
    • In Post-Processing Scripts, add the full path to this exe (see screenshot below).
  • In Slic3r -> Printer -> Custom G-Code; add this:
    • Start G-Code:
      • ; START Header
      • ; ... your header here
      • ; END Header
    • End G-Code:
      • ; START Footer
      • ; ... your footer here
      • ; END Footer
    • Before layer change G-Code: ;layer:[layer_num]; \n M117 Layer [layer_num];

NOTE:

CS version will no longer be maintained and has been removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.