Possibly useful extensions...

Discussion about writing code for Inkscape.
User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Possibly useful extensions...

Postby RobA » Tue Jun 19, 2012 1:37 am

I was working with an externally generated SVG file that created everything as groups. I wanted to manage these as layers, so I wrote a quick pair of extensions to turn any selected groups into sublayers of the existing layer, and turn the active layer into a group in the layer above (or root).

I think the group->layer extension could use a recursion option, but I haven't gotten that far yet. Please let me know if this is useful.

They show up under Extensions->Convert Groups or Layer.

-Rob A.
Attachments
layergroupconv.zip
(2.98 KiB) Downloaded 401 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Possibly useful extensions...

Postby brynn » Tue Jul 31, 2012 4:16 am

Awesome, RobA :D
Are these going to go into the Extension Repository?

Vectorian
Posts: 3
Joined: Mon Jul 30, 2012 1:28 am

Re: Possibly useful extensions...

Postby Vectorian » Wed Sep 05, 2012 9:30 pm

fyi, causes inkscape to crash in version 0.48.3.1

Nevertheless, just because of this awesome extension, i keep on using a 0.48.2 version although.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Possibly useful extensions...

Postby ragstian » Fri Dec 07, 2012 2:29 pm

Hi.

Working like a charm in Inkscape 0.48+devel r11936.
Very useful!

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar


Return to “Programming”