GithubHelp home page GithubHelp logo

scriptspythonprusaslicer's Introduction

ScriptsPythonPrusaSlicer

Sample python scripts for PrusaSlicer or SuperSlicer

Installation instructions

1. Install python and remember the installation directory

This version was tested with python 3.8 (32 bits). You can find a version of the Python distribution and the development environment : https://www.python.org/downloads/

2. Copy the scripts in a short path storage location

3. Configuration in PrusaSlicer

Go to: Print Settings > Output options > Post-processing scripts

With Python 3.x installed:

Add line: "[python directory]\python.exe" "[script directory]\ReplaceM73.py";

ReplaceM73.py & ReplaceM73New.py

Replace the M73 P R instruction into a M117 line for non Prusa MK3 printer. In order to get also the Total number of layer you must add the code :

';LAYER_COUNT:[total_layer_count]'

In the Prusa Slicer or SuperSlicer Initial G-Code. Note the ReplaceM73New.py is a modification of the previous ReplaceM73.py script to be compatible with the 2.4 release of PrusaSlicer.

ExternalContourAcceleration.py

Replace the M204 Pxxx instruction for External contour, in order to use a specific Acceleration value for external contour. Perimeter_acceleration (Perimeter accelerations) must be define in the print profile ( Speed - Acceleration controle)

Detect in the G-Code ;TYPE:External perimeter

and then change the value set in the python code by : M204_code = "M204 P600\n"

RestartM600.py

Re-start the Gcode from the first M600 position founded in the Gcode. Need to define manualy the Change Color or filament position in PrusaSlicer

Listing.py

An other sample script

scriptspythonprusaslicer's People

Contributors

5axes avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vb6hobbyst7

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.