Giter Club home page Giter Club logo

nautilus_thumbnailer_gcode's Introduction

Nautilus GCode Thumbnailer

Nautilus aka GNOME File Browser:

It supports G-code for 3D printers sliced with Slic3r, Prusa Slicer and Cura.

Requirements

  • install PovRay sudo apt -y install povray and (cd ~; ln -s /etc/povray/ .povray)

Download

% git clone https://github.com/Spiritdude/Nautilus_Thumbnailer_GCode
% cd Nautilus_Thumbnailer_GCode

Install

% sudo make install

and restart Nautilus and then your .gcode will show up rendered in the preview.

Clear Thumbnail Cache

% rm -rf ~/.cache/thumbnails/fail/

or also

% rm -rf ~/.cache/thumbnails/

gcode2png

You may use it also manually:

% gcode2png cube.gcode

USAGE gcode2png 0.1.0: [<opts>] <file.gcode> ... 
   options:
      --version               print version and exit
      --autolevel             level Z minimum to 0 (default: off)
      --output=<fn>           override .gcode -> .png conversion
      --size=<w>x<h>          set size of image (default: 512x512)
      --rotate=<x>,<y>,<z>    rotate model (default: 30,0,-20)
      --dist=<d>              set distance multiplier (default: 1)
      --color=<r>,<g>,<b>     set color (default: .1,.8,.1)
      --grid=0 or 1           set grid (default: 1)
      --grid_size=<s>         set grid size (default: 10)
      --nozzle=<d>            set nozzle diameter (default: 0.4)
      --complete=<i>          set completeness: 0..1 or 0%..100%
      --timeout=<s>           set timeout of povray (default: 90)
      
   examples:
      gcode2png gcube.gcode
      gcode2png --output=cube-normal.png cube.gcode
      gcode2png --color=1,0,0 3DBenchy.gcode
      gcode2png --complete=50% 3DBenchy.gcode
      

See Also

nautilus_thumbnailer_gcode's People

Contributors

spiritdude avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

gokmonk

nautilus_thumbnailer_gcode's Issues

ERROR: 124 in povray

Installed per instructions, and get this error when I try to run a test:

[me@mylaptop Nautilus_Thumbnailer_GCode]$ ./gcode2png --output=test.png tests/sphere.gcode --timeout=10
gcode2png: ERROR: 124 in povray, abort

No verbose option in gcode2png?

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.