Include an object into group

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 1:55 am

Lets say i have a bunch of objects in various z-orders.
Some of them are in a group, but i want to include more already existing objects into the group.

How can i achieve that without changing the position of the object or ungrouping the existing group ?

It appears to me, what i want is basically the same as moving the object to another layer, with the difference that the layer is not a layer but a group.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 1:57 am

I found out you can use 'Cut' and then 'Paste into place', after entering the group.

The manual also states 'Shift + Ctrl +Alt + Left Mouseclick' can be used, but that doesnt seem to work for me....(except giving me a cramp in the hand)

Anybody knows what im doing wrong ?

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

Re: Include an object into group

Postby brynn » Wed Mar 02, 2016 2:38 am

I'm not sure if I understand the manual. Is Shift + Alt + Ctrl + click supposed to select the unselected object from beneath the group? It seems to select individual objects in a group (the one you click on with those 3 keys engaged) and adds successively the next lower object, and it even adds an object that's not in that group (below the group) to the selection.

I guess that's what it's suppose to do. But I'm not sure. I doesn't sound like it's supposed to add new objects to a group.

If I need to add another object to a group, I usually do the technique you described, about Cut/Paste in Place after entering the group.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 3:39 am

brynn wrote:I'm not sure if I understand the manual.

Me neither...

Im not sure what to make of the word toggle....

But if you divide the sentence from the manual into its two statements, it seems to say two things:

1. Add an unselected object within a Group to a selection.
2. Remove a selected object within a Group from a selection.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Wed Mar 02, 2016 4:21 am

After trying it out and thinking about the text, I think it seems to allow you to add objects to your selection when:

- there's a group (which you did not enter)
- below it, there are other objects
- you want to select a few objects from inside the group, and a few objects from under the group
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Wed Mar 02, 2016 4:23 am

Btw. the XML editor allows you to move objects into groups, too, as an alternative (although Cut+Paste is easier, as the XML editor doesn't provide a great overview)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 4:38 am

Moini wrote:After trying it out and thinking about the text, I think it seems to allow you to add objects to your selection when:

- there's a group (which you did not enter)
- below it, there are other objects
- you want to select a few objects from inside the group, and a few objects from under the group

I think you are correct. Thanks Moini !

Moini wrote:Btw. the XML editor allows you to move objects into groups, too, as an alternative

Could you explain that briefly, please ?

Might come in handy sometime.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Wed Mar 02, 2016 4:50 am

Could you explain that briefly, please ?


A picture paints a thousand words ;) (2 pictures = 2000?...)

Bildschirmfoto_2016-03-01_19-46-44.png
Bildschirmfoto_2016-03-01_19-46-44.png (14.51 KiB) Viewed 2665 times

Bildschirmfoto_2016-03-01_19-47-20.png
Bildschirmfoto_2016-03-01_19-47-20.png (41.05 KiB) Viewed 2665 times
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

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

Re: Include an object into group

Postby brynn » Wed Mar 02, 2016 4:53 am

And coming in 0.91 is the new object manager (not sure what the official name is). I suspect that will make it much easier, although I haven't tried it yet (only saw a screenshot).

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 4:55 am

It looks scary but it worked. Thanks !

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Wed Mar 02, 2016 4:58 am

The scary part for me was that it also allowed to put a rectangle into a rectangle... I'm not sure that's really valid SVG...
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Wed Mar 02, 2016 5:03 am

:lol: Voodoo

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Thu Mar 03, 2016 3:59 am

Espermaschine wrote:It appears to me, what i want is basically the same as moving the object to another layer, with the difference that the layer is not a layer but a group.

I was wondering, i think Lazur said, that a layer is more or less the same as a group in Inkscape.

Wouldnt it be good, if there was an option to transform a group into a layer with one command ?
That would make including objects into a group easier, because one could use the already existing layer commands.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Thu Mar 03, 2016 4:44 am

This works if you use the XML editor.

To turn a group into a layer, enter 'inkscape:groupmode' into the top line, and 'layer' into the text field, then click 'set'.
You've now created a sublayer.
Removing the attribute turns it back into a normal group.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Thu Mar 03, 2016 5:00 am

Lots of good things coming out of this thread !
Thanks again Moini !

EDIT: i think i need a screenshot, pls. Tried it but not sure where to place the text.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Thu Mar 03, 2016 6:39 am

Of course, here it is:

Bildschirmfoto_2016-03-02_21-37-30.png
Bildschirmfoto_2016-03-02_21-37-30.png (47.76 KiB) Viewed 2569 times


(for deletion, select the attribute from the list and click on the (in the screenshot) greyed-out button.)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Thu Mar 03, 2016 6:45 am

Okay, now i got it !

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Thu Mar 03, 2016 7:40 am

Oh, one new thing I just learnt in the German forum, which isn't documented anywhere (just FTR, in case someone else reads this):
if you select an SVG element (in the left section of the XML editor) and press * , all elements nested inside it will be displayed (unfolded).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Thu Mar 03, 2016 7:52 am

Moini wrote:all elements nested inside it will be displayed (unfolded).

and the woman in red appears

Image

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Include an object into group

Postby Moini » Thu Mar 03, 2016 8:03 am

You sure there is one in every SVG?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Include an object into group

Postby Espermaschine » Thu Mar 03, 2016 8:23 am

Moini wrote:You sure there is one in every SVG?

Only in Dillerkind's.


Return to “Help with using Inkscape”