From 378f079e6d15757ed6cb0b2e04f50642b5adaaac Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 21 Apr 2018 15:49:58 -0400 Subject: add ThreadCatalog and palette matching --- embroider_print.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embroider_print.py') diff --git a/embroider_print.py b/embroider_print.py index cbdaeb09..7ab24876 100644 --- a/embroider_print.py +++ b/embroider_print.py @@ -21,6 +21,7 @@ from inkstitch.extensions import InkstitchExtension from inkstitch.stitch_plan import patches_to_stitch_plan from inkstitch.svg import render_stitch_plan from inkstitch.utils import save_stderr, restore_stderr +from inkstitch.threads import ThreadCatalog from jinja2 import Environment, FileSystemLoader, select_autoescape from datetime import date @@ -290,6 +291,7 @@ class Print(InkstitchExtension): patches = self.elements_to_patches(self.elements) stitch_plan = patches_to_stitch_plan(patches) + ThreadCatalog().match_and_apply_palette(stitch_plan) render_stitch_plan(self.document.getroot(), stitch_plan) self.strip_namespaces() -- cgit v1.2.3