Grouping and Layers

Post questions on how to use or achieve an effect in Inkscape.
Wicket
Posts: 4
Joined: Sat Dec 25, 2010 4:22 am

Grouping and Layers

Postby Wicket » Sat Dec 25, 2010 6:51 pm

Sometimes I group several elements to move the whole thing. The problem I encountered is simply that all elements will be moved into the same layer as soon as I group the elements. Is there any way to avoid that behavior?

User avatar
shawnhcorey
Posts: 149
Joined: Mon Jan 07, 2008 12:17 pm

Re: Grouping and Layers

Postby shawnhcorey » Sat Dec 25, 2010 11:52 pm

No, SVG does not have layers. Inkscape emulates layers with grouping and SVG only allows objects, paths, and other groups to be in one group. That is, only trees of groups are allow. Maybe, one day SVG will have layers. Until then, groups can not cross layer boundaries.

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

Re: Grouping and Layers

Postby brynn » Sun Dec 26, 2010 2:35 pm

Well, nevertheless, if you group several elements, that reside in different layers (even though layers are really special groups), all the elements are moved into the same layer. There's no way to avoid it, but there IS a way to move them all at once. And that is simply to select them all, and rather than click Group, just move them. They will all be moved together. I know it's not a perfect solution, but you just have to use a different workflow to avoid grouping across layers.

Wicket
Posts: 4
Joined: Sat Dec 25, 2010 4:22 am

Re: Grouping and Layers

Postby Wicket » Sun Dec 26, 2010 6:12 pm

Well, the problem with that is that I sometimes have more than 10 elements I want to move. As soon as I select something else I have to select 10 elements one after another again. Thats especially annoying when I want to move several elements above other elements. When I group those elements I just have to select the group, which is much more comfortable and not so time consuming. But if I want to change something within the group everything is in one layer. So I have to move Elements in different layers again which is very much annoying when I want to group it again. Infinite loop...

When Inkscape can emulate layers, as long as you don't group them, why can't it emulate the layers when you group them? Hopefully that will be different in a future version.

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

Re: Grouping and Layers

Postby brynn » Sun Dec 26, 2010 10:18 pm

I don't know if it's been reported as a new feature/wish list "bug" or not. But you could search at Launchpad, Inkscape's bug tracker: https://launchpad.net/inkscape Or maybe ~suv will chime in here? If it's a reasonable option, then you could make the request yourself.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Grouping and Layers

Postby ~suv » Sun Dec 26, 2010 11:17 pm

Wicket wrote:When Inkscape can emulate layers, as long as you don't group them, why can't it emulate the layers when you group them?
Read the earlier explanation given:
shawnhcorey wrote:Inkscape emulates layers with grouping and SVG only allows objects, paths, and other groups to be in one group. That is, only trees of groups are allow.
An object cannot be a direct member in several groups across trees at the same time (it is kind of "in several groups" within the same tree when groups are nested, but not as direct member either).

And yes, it's a well known limitation - Inkscape is waiting for SVG to have real layers included in the specification (see the Wiki page SVG Working group listing how the SVG standard can be improved to the benefit of Inkscape).

Secondly, based on your described workflow issue, more likely you don't really want grouping across layers, you want (named) selection sets: see the feature request “sets (named selections)” in the bug tracker.


Return to “Help with using Inkscape”