Skip to content

Adding default config file #14

Open

Description

@SanZamoyski

Hi again!

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

Regards!

Activity

  1. arpruss commented on May 16, 2019

    @arpruss
    Owner

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

  2. nylen commented on Oct 14, 2019

    @nylen

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions