Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding default config file #14

Open
SanZamoyski opened this issue May 16, 2019 · 2 comments
Open

Adding default config file #14

SanZamoyski opened this issue May 16, 2019 · 2 comments

Comments

@SanZamoyski
Copy link

Hi again!

Is there any way to put somewhere some default config file instead of using switches?

Regards!

@arpruss
Copy link
Owner

arpruss commented May 16, 2019

No. But you can use --config=filename.

@nylen
Copy link

nylen commented Oct 14, 2019

You probably want to make a short shell script with your configuration.

Example:

#!/bin/bash

set -e

svg="$1"
gcode="${svg%.svg}.gcode"

python "$(dirname "$0")/gcodeplot/gcodeplot.py" \
    --work-z=0.9 \
    --lift-delta=0.6 \
    --safe-delta-z=3 \
    --z-speed=45 \
    --pens=pens.txt \
    "$svg" \
    > "$gcode.tmp"

# This avoids overwriting the gcode file if the script fails
mv "$gcode.tmp" "$gcode"

echo "Wrote gcode file: $gcode"

Save that as convert.sh, update the path to where you have gcodeplot downloaded, and then run bash convert.sh yourfile.svg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants