Inkscape Unicorn G-Code 输出扩展教程

Inkscape Unicorn G-Code 输出扩展教程

inkscape-unicorn Inkscape extension for outputting G-Code for the MakerBot Unicorn Pen Plotter inkscape-unicorn 项目地址: https://gitcode.com/gh_mirrors/in/inkscape-unicorn

1. 项目的目录结构及介绍

inkscape-unicorn/
├── src/
│   ├── unicorn.py
│   ├── unicorn.inx
│   └── ...
├── LICENSE
└── README.md

目录结构说明

  • src/: 包含项目的主要源代码文件。
    • unicorn.py: 这是主要的Python脚本,负责将Inkscape绘图转换为G-Code。
    • unicorn.inx: 这是Inkscape的扩展配置文件,定义了扩展的元数据和用户界面。
  • LICENSE: 项目的开源许可证文件。
  • README.md: 项目的自述文件,包含项目的基本信息和使用说明。

2. 项目的启动文件介绍

启动文件:unicorn.py

unicorn.py 是Inkscape Unicorn扩展的核心文件,负责将Inkscape中的矢量图形转换为适用于MakerBot Unicorn Pen Plotter的G-Code。该文件通过Inkscape的扩展API与Inkscape进行交互,处理用户的选择和设置,并生成相应的G-Code文件。

主要功能

  • 图形转换: 将Inkscape中的矢量图形转换为G-Code。
  • 用户交互: 通过Inkscape的用户界面获取用户设置,如图形尺寸、位置等。
  • G-Code生成: 根据用户设置生成G-Code文件,供MakerBot Unicorn Pen Plotter使用。

3. 项目的配置文件介绍

配置文件:unicorn.inx

unicorn.inx 是Inkscape扩展的配置文件,定义了扩展的元数据、用户界面和行为。该文件告诉Inkscape如何加载和使用unicorn.py脚本。

主要配置项

  • 扩展名称: 定义扩展在Inkscape中的显示名称。
  • 作者信息: 提供扩展的作者信息。
  • 版本信息: 定义扩展的版本号。
  • 依赖项: 列出扩展所需的依赖项,如Python版本等。
  • 用户界面: 定义扩展的用户界面,包括菜单项、对话框等。

安装说明

  1. src/目录中的所有文件复制到Inkscape的扩展目录中。

    • OS X: /Applications/Inkscape.app/Contents/Resources/extensions
    • Linux: /usr/share/inkscape/extensions
    • Windows: C:\Program Files\Inkscape\share\extensions
  2. 重启Inkscape。

  3. 在Inkscape中,通过文件 -> 保存副本,选择MakerBot Unicorn G-Code (*.gcode)格式,即可生成G-Code文件。

通过以上步骤,您可以成功安装并使用Inkscape Unicorn扩展,将您的Inkscape绘图转换为适用于MakerBot Unicorn Pen Plotter的G-Code。

inkscape-unicorn Inkscape extension for outputting G-Code for the MakerBot Unicorn Pen Plotter inkscape-unicorn 项目地址: https://gitcode.com/gh_mirrors/in/inkscape-unicorn

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

芮逸炯Conqueror

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值