Category Archives: Python

Working on the next thing . . .

Hi, I suppose it’s time for me to start blogging here a bit about some recent work I’ve been doing for the tmtp project. I’ve been watching Susan work on this project from the beginning, mostly being a cheerleader and … Continue reading

Posted in Announcements, Python, SVG | 3 Comments

Steampunk Jacket Update

The wiki has been updated with the latest version of the Steampunk Jacket.  The sleeves and pockets are completed.  Still working on the collar and lapel. Link here to current code files  The code has been cleaned up, repetitious code … Continue reading

Posted in Inkscape, Inkscape extension, Process, Python, SVG | Tagged , , , | Comments Off on Steampunk Jacket Update

Steampunk Jacket: Create seam allowance with Inkscape’s Outset feature

Current code files for Steampunk Jacket are here: http://www.sew-brilliant.org/wiki/index.php?title=Men’s_Steampunk_Jacket_1870-1900 Once the pattern is generated with the extension steampunk_jacket.inx and steampunk_jacket.py: 1.select all points that aren’t corners and set to auto-smooth.  Set points at the waist line and elbows to symmetrical. … Continue reading

Posted in Design, Inkscape, Process, Python, SVG | Tagged , , , , | 6 Comments

Steampunk Jacket Back and Front Pieces Done

I’ll try to post the file on the wiki soon.  These two pieces had to be generated from the same file, as they shared several reference lines.  I need to create patterns for the sleeve, both pockets, the collar, collar … Continue reading

Posted in Design, Inkscape, Python, SVG | Tagged , , , , | 1 Comment

Front Bodice Block done!

I rewrote the programs again, tweaking the curves and re-thinking the algorithm. The latest files are posted at Current Code Files

Posted in Design, Inkscape, Python, SVG | Tagged , , , | Comments Off on Front Bodice Block done!

Finally, some rest for the wicked…everybody else will have to stay awake

The Back Bodice Block Pattern is done. Must remove reference lines, pretty it up and give it a nice bouncy shine. Commented code as I went along because I remember nothing from day to day. Three months ago I had … Continue reading

Posted in Announcements, Inkscape, Python, SVG | Tagged | 4 Comments

Simultaneous solving of equations – who knew it would come to this?

Oh yeah.  I had a shoulder line with a slope.  Needed to make a  dart perpendicular to shoulder line at the midpoint. Aha!  Get slope of shoulder line, negate & invert to get perpendicular slope.  Use midpoint as center point … Continue reading

Posted in Design, Inkscape, Python, SVG | Tagged , , , | 2 Comments

SVG Quadratic Bezier Curves in Python? I pwned ‘em

I’ve been struggling with creating bezier curves in an Inkscape SVG drawing from within a custom Inkscape extension written in Python.  It turns out that it’s the formatting of the element call that was the problem.  Here’s what worked for … Continue reading

Posted in Inkscape, Python, SVG | Comments Off on SVG Quadratic Bezier Curves in Python? I pwned ‘em

SVG Primer current site

The previous great SVG learning site that I blogged about earlier was out of date in 2009.  The current version is at the W3 site.  It’s been there for some time. And it’s still the best I’ve found. Here’s the … Continue reading

Posted in Inkscape, Python, SVG | 1 Comment

Getting to know pySVG library

I found a newly developed library that I think will make creating objects in Inkscape a lot easier:   pySVG – http://codeboje.de/pysvg/ .  Just found some  great documentation at /usr/share/pySVG/doc/html/genindex.html that provides an index of the api which link to … Continue reading Continue reading

Posted in Python, SVG | Comments Off on Getting to know pySVG library