Search found 6 matches
- Tue Feb 10, 2015 4:57 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Re: Extensions hangs when writing large number of objects
Thanks for sharing your code, Sorry if I do a stupid question but... That skimage that you call in your code have to be installed into the python interpreter that comes with inkscape, or in the inkscape interpreter that comes with, say... ubuntu?. If it has to come with the python that comes with i...
- Tue Feb 10, 2015 3:30 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Re: Extensions hangs when writing large number of objects
oops! I've removed Voronoi.py from my post.
- Tue Feb 10, 2015 2:43 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Re: Extensions hangs when writing large number of objects
I've managed to solve my problem, somehow. I've lost the original code that seemed to not work, although i suspect I wasn't giving it enough time to finish. I'm posting the working code here. I am not particularly proud of these scripts, I'm new to inkscape, they work for my purposes but don't handl...
- Sun Feb 08, 2015 6:34 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Re: Extensions hangs when writing large number of objects
Yes I will do some tests adding objects to layers in different ways and see what breaks and what doesn't, and post results here.
So far I've been able to add 10,000 "rect" objects no problem.
So far I've been able to add 10,000 "rect" objects no problem.
- Sun Feb 08, 2015 5:32 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Re: Extensions hangs when writing large number of objects
Thanks!
I've modified the "Hello world" extension to place "Hello World" 10000 times in random locations. It works. Not sure what my problem is. Perhaps drawing large numbers of polygons just takes longer. I will try to find out exactly what is breaking.
I've modified the "Hello world" extension to place "Hello World" 10000 times in random locations. It works. Not sure what my problem is. Perhaps drawing large numbers of polygons just takes longer. I will try to find out exactly what is breaking.
- Sun Feb 08, 2015 4:12 am
- Forum: Programming
- Topic: Extensions hangs when writing large number of objects
- Replies: 21
- Views: 5899
Extensions hangs when writing large number of objects
I've written two extensions which both hang when creating large numbers of objects (about 500 or more), but work well when creating fewer objects (less than 500). Both extensions are written in Python and use inkex.py I'd be happy to provide more details, but essentially they do this: 1. takes an im...