This question is associated with the programming language Python
Questions tagged [python]
13 questions
4
votes
1 answer
Why is this central area of the STL being filled in?
We've been doing some work automatically generating STL files using Python. We've made a ring of cubes like so:
Importing it into Cura still makes it look valid, with a hole in the center:
However, post slicing it comes up with saying it will…

Alexander Craggs
- 141
- 2
4
votes
3 answers
Convert a 3D NumPy array of voxels to an STL file
Given a 3D boolean array representing voxels, how can it be converted to a 3D-printer-ready file?
The end-goal I would like to achieve is to print the 3D shape that the numpy array represents (True coding for fill this voxel, False for leave it…

Stephane Bersier
- 143
- 1
- 5
3
votes
2 answers
Sending G-code commands to Hyrel System 30M using python
I am using python 3.6 with pySerial library to connect to the Hyrel System 30M 3D Printer. I am able to read the data from the device but unable to write any commands to it
Here is the code:
ser = serial.Serial()
ser.port = 'COM4'
…

Varun Kumthekar
- 31
- 1
3
votes
1 answer
Is it possible to convert a Las /Laz file into an STL or OBJ file?
I would like to know if there is any tool/library (preferably python based) that could be used in parsing a Laz file to extract info that is normally found in 3d object files such as vertices. Which could be used to create printable 3d mesh.
I…

Durodola Opemipo
- 31
- 1
- 5
3
votes
3 answers
Reverse the X-axis of a G-code file
I've got some sliced models that represent the right-side arms and legs of a robot. I'm really happy with how they printed, so now I'd like to print the left-side arms and legs.
I was thinking it would be pretty trivial to parse the G-code file…

Ron Jensen
- 163
- 8
3
votes
1 answer
How to display images on DLP using HDMI for 3D printing?
I am working on a DLP based 3D printer. I already sliced my STL file to multiple layers. Each layer is saved as a SVG file. Because its an SVG file, I can always convert each layer to PNG/JPG file if desired.
I have a TI DLP Lightcrafter 4500…

Zythyr
- 131
- 3
2
votes
0 answers
Stepper Motor Linear Acceleration Python (raspberry pi)
I am working on a Python code (below) that accelerates a stepper motor until it reaches a specific amount of steps.
for s in range (steps):
if s < accelerationsteps:
lateststep = self.onestep(direction, stepstyle)
time.sleep(s_per_s)
…

LuukS
- 21
- 1
- 2
2
votes
1 answer
How to build my own Cura GUI?
I am trying to create my own Cura GUI. I am constantly getting the error:
UM module not found.
Do I need to see a UI file?
I think I am wrong.
I've installed Python, pyqt5, numpy, scipy, but I do not understand why the constant UM module was not…

term
- 21
- 1
1
vote
2 answers
How to build Cura on Windows?
I am interested in doing development on Cura. Initially I want to start with the UI rather than the Engine. I have found the repository and have cloned it to my PC. I have also looked over the Wiki and searched the web. For such a popular…

markshancock
- 2,412
- 2
- 11
- 35
1
vote
0 answers
Receive M114 command while printing using Printrun
I'm working on a project for which I use the Printrun package to serial communicate my G-code to my 3D printer (Creality Ender 3, Marlin firmware). The idea is that I have an external button connected to an Arduino such that whenever I press this…

Madie
- 11
- 2
1
vote
1 answer
How do you send G-code from a USB port with Python?
I'm working on a project for my masters where I'm trying to detect print errors using object detection and I want to be able to pause the printer when a potential fault is detected. However I can't seem to figure out the correct way to send G-code…

Nick
- 13
- 3
0
votes
1 answer
Can't create image to G-code software for CNC to process
For the last 3 months I have been working on a CNC drawing machine but to this day I can't get the algorithm for line detection so I came here.
I can't understand only one part and it is CAM the (image to G-code) so I'd be grateful if someone could…

Irakli
- 1
0
votes
0 answers
PyCNC - Z steppers screaming
I'm transforming my Anet A8 printer to Raspberry Pi driven using PyCNC. Things seem to look promising so far apart from the Z motor doing nothing but making screaming-like sound when supposed to be moving (In pycnc enter command z10).
I was playing…

haxpanel
- 111
- 4