From acaebaa956006a0fa064c2361b47f902a8a50b77 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 23 Jan 2018 20:13:37 -0500 Subject: 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 --- bin/gen-format-list | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/gen-format-list (limited to 'bin/gen-format-list') 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)' % (extension[1:], description, extension.upper()) + + curFormat = curFormat.next + -- cgit v1.2.3