Search found 4 matches
- Sat Oct 29, 2016 10:13 am
- Forum: Programming
- Topic: Extension to offset a path
- Replies: 8
- Views: 5311
Re: Extension to offset a path
Thanks for the help guys the whirl extension gave me what I needed. I would like to be able to run the extension without having to select the path but this is progress for sure. One hurdle down many more to go. Here is the working code: def effect( self ): for id, node in self.selected.iteritems(): ...
- Sat Oct 29, 2016 8:10 am
- Forum: Programming
- Topic: Extension to offset a path
- Replies: 8
- Views: 5311
Re: Extension to offset a path
I'm still learning python so it may just be a programming error. Here is what I have def recursivelyTraverseSvg( self, aNodeList): for node in aNodeList: if node.tag == inkex.addNS( 'g', 'svg' ) or node.tag == 'g': self.recursivelyTraverseSvg( node ) if node.tag == inkex.addNS( 'path', 'svg' ): retu...
- Sat Oct 29, 2016 3:18 am
- Forum: Programming
- Topic: Extension to offset a path
- Replies: 8
- Views: 5311
Re: Extension to offset a path
Thanks for the response. I should have been more precise; I'm trying to make my own extension to automate offsetting a lot of paths. Its hard to find documentation on the extensions so far I've found what I believe is an offset statement in the gcodetools extension. inkex.etree.SubElement( area_grou...
- Fri Oct 28, 2016 11:36 pm
- Forum: Programming
- Topic: Extension to offset a path
- Replies: 8
- Views: 5311
Extension to offset a path
I want to simplify some tasks I have to do. I've been looking through some extensions but haven't been able to find anything on offsetting a path. I realize its a very simple operation to offset a path but I'm wanting to do it several times and with different widths so an extension would help out a ...