"Filter layer" like in Synfig and Krita

General discussions about Inkscape.
User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

"Filter layer" like in Synfig and Krita

Postby bartovan » Fri Mar 20, 2015 4:36 pm

In Synfig and Krita there is the concept of a "filter layer", i.e. a special kind of layer that affects all layers below it or in the same group of layers. Would it be possible to implement this in Inkscape? Or does it exist, in some way or another?

Description:
For instance, in a drawing with Layers 1, 2 and 3, add a new layer "filter layer" on top of layers 1 and 2 but below layer 3. This "filter layer" has no objects, but has properties (filter parameters) that can be set (same as custom filter, with presets like blur, opacity, and complex combinations of parameters). All objects on any layer below this "filter layer" will have the filter applied. Objects above remain untouched.

Added the possibility to use a mask on the filter layer (a "hole" in it where it doesn't apply), it's quite handy...
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: "Filter layer" like in Synfig and Krita

Postby Lazur » Fri Mar 20, 2015 9:51 pm

Svg specs doesn't have a support for layers; inkscape implements them as groups.

You can use layers and sublayers if you will, so that a filter added to the layer would affect its sublayers.
In your example, a filtered layer with sublayers 1 and 2, and a separate layer 3 could function similar as you described.
But filters doesn't work by "affecting objects below".

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: "Filter layer" like in Synfig and Krita

Postby v1nce » Fri Mar 20, 2015 11:02 pm


User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

Re: "Filter layer" like in Synfig and Krita

Postby bartovan » Sat Mar 21, 2015 1:11 am



I already did :)
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.

User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

Re: "Filter layer" like in Synfig and Krita

Postby bartovan » Sat Mar 21, 2015 1:21 am

So, if I understand correctly, feature request #1201610 together with use of sublayers would do the trick. (Maybe mention also that feature request #512834 is more or less a duplicate, and gives a rather easy workaround. So it is already possible, actually, only not directly through dialogs).

Would it be possible to "make a hole" in the area where the filter has effect (like applying a mask)?
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.


Return to “General Discussions”