{"id":387,"date":"2008-02-17T22:39:40","date_gmt":"2008-02-17T21:39:40","guid":{"rendered":"http:\/\/ospublish.constantvzw.org\/?p=387"},"modified":"2008-09-08T16:24:09","modified_gmt":"2008-09-08T15:24:09","slug":"inkscape-plugins-in-python","status":"publish","type":"post","link":"http:\/\/ospublish.constantvzw.org\/blog\/tools\/inkscape-plugins-in-python","title":{"rendered":"Inkscape plugins in Python"},"content":{"rendered":"

\"circles.png\"<\/a><\/a><\/p>\n

Inkscape allows python scripts to be used as effects plugins. In a nutshell: you use the DOM<\/a> to create \/ manipulate the structure of the SVG document and use CSS properties to style — so there’s quite some overlap with “regular” CGI & web programming.<\/p>\n

This example (circles) is based on the example given on the Inkscape wiki<\/a>. I started by making a simple Inkscape file (with a single circle), saving the file, then opened it in a text editor to view the “raw” XML structure of the SVG. I used this as a guide for what the code needed to produce.<\/p>\n

circles.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Inkscape allows python scripts to be used as effects plugins. In a nutshell: you use the DOM to create \/ manipulate the structure of the SVG document and use CSS properties to style — so there’s quite some overlap with “regular” CGI & web programming. This example (circles) is based on the example given on […]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[6,23,48],"_links":{"self":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/387"}],"collection":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":1,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":677,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/posts\/387\/revisions\/677"}],"wp:attachment":[{"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ospublish.constantvzw.org\/blog\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}