diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-01-23 20:13:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-23 20:13:37 -0500 |
| commit | acaebaa956006a0fa064c2361b47f902a8a50b77 (patch) | |
| tree | e4278dd088d82bbc9830b9281accc9d813bd8dd8 /bin/gen-format-list | |
| parent | 462bf0bdbeed8b4a631d2ce6d68df7842a86e5c6 (diff) | |
add params for "TRIM after" and "STOP after" (#29)
* adds new options to Params: "TRIM after" and "STOP after"
* adds tooltip support to Params
* inkstitch now includes libembroidery and can directly output any supported file type
* this avoids the need for `libembroidery-convert` and compiling embroidermodder!
* TRIM support for DST format (inserts 3 JUMPs)
* STOP command supported as an extra color change that the operator can assign to code C00
* TRIMs cause the following jump stitch not to be displayed in the Embroidery layer
Diffstat (limited to 'bin/gen-format-list')
| -rwxr-xr-x | bin/gen-format-list | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/gen-format-list b/bin/gen-format-list new file mode 100755 index 00000000..674813bb --- /dev/null +++ b/bin/gen-format-list @@ -0,0 +1,19 @@ +#!/usr/bin/env python + +import sys + +sys.path.append('embroidermodder/experimental/python/binding') +from libembroidery import * + +formatList = embFormatList_create() +curFormat = formatList +while(curFormat): + extension = embFormat_extension(curFormat) + description = embFormat_description(curFormat) + writerState = embFormat_writerState(curFormat) + + if writerState.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY: + print '<_option value="%s">%s(%s)</_option>' % (extension[1:], description, extension.upper()) + + curFormat = curFormat.next + |
