Simple GCode Viewer
Project description
Welcome to mecode_viewer
Installation
pip install mecode_viewer
Getting Started
Example: simplest case
All that is needed to run mecode_viewer
is to provide a path to your gcode file. By default, mecode_viewer
assumes you're using a Nordson pressure controller to control ink extrusion.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm')
Example: custom extrusion command
Linear actuators are also often used to control ink extrusion during printing. This example shows how we can provide a custom extrude_cmd
to specify when extrusion starts and stops. E.g., if linear actuator #5 is typically run using FREERUN PDISP5 2.5
and stopped using FREERUN PDISP5 STOP
, we can simply set extrude_cmd='FREERUN PDISP5'
.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm', extrude_cmd='FREERUN PDISP5')
Example: animated visualization
By default mecode_viewer
will display a 3D figure of your gcode toolpath. If you would like to view an animated version, set animate=True
.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm', animate=True)
Want to learn more?
Full documenation of mecode_viewer
available at API Reference.
License
mecode_viewer
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mecode_viewer-0.2.9.tar.gz
.
File metadata
- Download URL: mecode_viewer-0.2.9.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c5fd8bbffb899f09062cc089a940dbfc53bbe77a55c71e94533cda02371166 |
|
MD5 | c99031cbd47d930d6c041e7b19f2b6d1 |
|
BLAKE2b-256 | b4ddab9927d55a31af8486b6730f8874f9f7042b4b3601f3e87c62d798170e0c |
File details
Details for the file mecode_viewer-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: mecode_viewer-0.2.9-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09cf04e67dc8223f02e310d41d0231bfe115961e5a54911cf2ae2a0453c9c072 |
|
MD5 | df7d5993b0f67de9abef13e1607c5be2 |
|
BLAKE2b-256 | 47e18ca8d61714e29b25d36b0df221f791ff8dcafbfd9436f5c6e90d21720be7 |