Giter VIP home page Giter VIP logo

blender-gcode-importer's Introduction

Blender-GCode-Importer

A 3D render of a low-poly Thinker statue Lowest Poly The Thinker model by LXO on Printables.com

About

Blender GCode Importer is a simple plug-in that translates printer GCode into Bezier curve paths in Blender. This results in a very performant representation of the object in a highly customizable format.

Installation

To install the plugin, download the repository. Then go to Preferences > Addons and click the Install button. Find the gcode_importer.py file from the repository and click install.

Usage

To import a GCode file to Blender, simply go to File > Import and select the GCode option. In the new file browser window, find and select the .gcode file you would ike to import, then click 'Import Gcode'

FAQ

How long do models take to import?
This depends heavily on the computer you are running on, but imports can take anywhere from just a couple seconds to several minutes depening on the size and complexity of the model that is being imported.

How do I give the imported paths thickness?
These options can be found in the Properties area (bottom right panel in the default layout) when a path is selected. Under the 'Object Data Properties' tab there is a 'Geometry' dropdown. Under this dropdown, the two most useful values are 'Extrusion' and 'Bevel'. Adjust these values until the desired look of the model has been reached.

Planned Features

  • Add import options for things such as skipping layers, path resolution, or defining custom GCode parameters.
  • Make it easier to edit all imported paths simultaneously
  • Make it easier to animate paths
  • Add the ability to import GCode as a point cloud

Troubleshooting

If you are experiencing issues with the plugin, feel free to open an issue and I'll respond when i can.

Like my work? Buy me a coffee! โ˜•

blender-gcode-importer's People

Contributors

kmnunley avatar marbocub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

marbocub

blender-gcode-importer's Issues

Travel Lines showing up in each Layer

First time Github poster, woot!

Coming over from Reddit Comment. I've been noticing extra lines that aren't wall or infill. I assume these are travel lines but are unsure exactly what causes them to show up/how to remove. I've included a ZIP file containing example GCode, Cura view of GCode and how it looks in viewport(blender) to show what is happening. As many settings as possible listed in thread.

Screenshot 2024-02-22 221318

GCode Issue.zip
Thank you in advance for any insight. Image is also included in ZIP file if needed for closer inspection

Cura version 4.6
0.2mm layer height
10% Cubic infill
Retraction enabled - tried disabling this and travel but it caused GCode to be unreadable
1 wall

Blender
Smoothing + geometry on Curves.

Another good example (without GCode) linked in this Instagram post that clearly shows these additional lines

Error on import

Hey!

I'm excited about this script and can't get it working, but I seem to be running into a bug regarding the Z values as the g-code is being parsed (at least that's what it looks like at first glance). The error occurs on attempting a .gcode import and doesn't output anything, yet. Here's the error:

Python: Traceback (most recent call last):
File "/Users/joshualo/Library/Application Support/Blender/2.93/scripts/addons/gcode_importer.py", line 126, in execute
import_gcode(self.filepath)
File "/Users/joshualo/Library/Application Support/Blender/2.93/scripts/addons/gcode_importer.py", line 110, in import_gcode
create_paths(gcode_lines)
File "/Users/joshualo/Library/Application Support/Blender/2.93/scripts/addons/gcode_importer.py", line 61, in create_paths
z = float(param[1:])
ValueError: could not convert string to float: ''

location: :-1

Thanks!

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.