File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<inkscape-extension xmlns =" http://www.inkscape.org/namespace/inkscape/extension" >
33 <_name >EggBot Control</_name >
4- <id >command.evilmadscientist.eggbot.rev275b1 </id >
4+ <id >command.evilmadscientist.eggbot.rev280b1 </id >
55 <dependency type =" extension" >org.inkscape.output.svg.inkscape</dependency >
66 <dependency type =" executable" location =" extensions" >eggbot.py</dependency >
77 <dependency type =" executable" location =" extensions" >inkex.py</dependency >
@@ -119,6 +119,7 @@ check the circuit board (EBB) firmware version.
119119 <_option value =" enable-engraver" >Engraver On</_option >
120120 <_option value =" disable-engraver" >Engraver Off</_option >
121121 <_option value =" version-check" >Check EBB Version</_option >
122+ <_option value =" strip-data" >Strip plotter data from file</_option >
122123 </param >
123124
124125 <param name =" WalkDistance" type =" int" min =" -32000" max =" 32000"
@@ -173,7 +174,7 @@ selected number, which can be up to 100.
173174 <_param name =" instructions_general" type =" description"
174175 xml : space =" preserve" >
175176EggBot Control Inkscape extension
176- Release 2.7.6 , dated 2016-06-19
177+ Release 2.8.0 , dated 2016-08-07
177178
178179*EBB Firmware 1.96 or newer required for certain
179180 functions.
Original file line number Diff line number Diff line change 22# Part of the Eggbot driver for Inkscape
33# https://github.com/evil-mad/EggBot
44#
5- # Version 2.7.7 , dated July 6 , 2016.
5+ # Version 2.8.0 , dated August 7 , 2016.
66#
77# This program is free software; you can redistribute it and/or modify
88# it under the terms of the GNU General Public License as published by
@@ -223,8 +223,19 @@ def effect( self ):
223223
224224 elif self .options .tab == '"setup"' :
225225 self .setupCommand ()
226+
226227 elif self .options .tab == '"manual"' :
227- self .manualCommand ()
228+ if self .options .manualType == "strip-data" :
229+ for node in self .svg .xpath ( '//svg:WCB' , namespaces = inkex .NSS ):
230+ self .svg .remove ( node )
231+ for node in self .svg .xpath ( '//svg:eggbot' , namespaces = inkex .NSS ):
232+ self .svg .remove ( node )
233+ inkex .errormsg ( gettext .gettext ( "I've removed all EggBot data from this SVG file. Have a great day!" ) )
234+ return
235+ else :
236+ self .manualCommand ()
237+
238+
228239
229240 if self .serialPort is not None :
230241 ebb_motion .doTimedPause (self .serialPort , 10 ) #Pause a moment for underway commands to finish...
You can’t perform that action at this time.
0 commit comments