Feature Request : Layer Clipping/Masking

Bug #1668116 reported by Reptorian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

While something like this can be done with grouped objects in Inkscape and going into object dialog, I think this feature could serve as a great use for artists to use to avoid going outside bounds of drawn area. To clarify upon this, let's say I want to make a car render in Inkscape. If I have to do that, then the first thing I need to do is to define the shape of the car in separate pieces. Let's go with the outerbody. For me to start with there, I need to make a grouped object and set clip, and then I work within the grouped object to avoid going out of bound of the expected drawing area.

This also would make it easier to make fog like effects.

Also, it would be a bonus if you can make a layer chained to the clipping mask. To clarify, let's look at photoshop. You can set up an alpha mask next to a image, and it can be chained or unchain. Chain means that whenever you move a object within photoshop, the chained alpha mask also moved.

This should be seen within the object dialog, and layer dialog. Preferably the object dialog since it's kind of a better layers in some way, but I'm aware they're not the same.

Revision history for this message
Hachmann (marenhachmann) wrote :

Similar to this, maybe: https://inkscape.org/de/~jabiertxof/%E2%98%85eraser-layer

(but the extension uses filters to achieve the result)

Revision history for this message
Reptorian (reptillia-39) wrote :

Yes, something like that, but for this one, I only want to see it go under C/M. Also, I think I have another idea. If that can't be done, but if it can be done with the way eraser layer works, I think it would be really nice to be able to hide container layers. Furthermore, I think one should be able to click the clipping/masking icon on the object dialog, and be able to edit the clipping/masking path, but that's for another time unless it can be done right now.

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Maybe a inverse option to the effect?

Revision history for this message
su_v (suv-lp) wrote :

Earlier requests for layer-related clipping/masking:
* Bug #171047 “Mask layer to hide like in Macromedia Flash”
* Bug #172123 “Layer mask/clip”
* Bug #299250 “Inkscape should allow “bounded rectangle” layers”
* Bug #1083566 “feature request: more intuitive clipping/masking”

The 'inverse' option mentioned in comment 3 is requested here:
* Bug #412928 “Allow clip/mask set inverse”

tags: added: clipping layers masking
Revision history for this message
Reptorian (reptillia-39) wrote :

Inverse clipping is like the erase layer tool, so that's welcomed.

Revision history for this message
Reptorian (reptillia-39) wrote :

I found a existing tool to support layer clipping - http://pernsteiner.org/inkscape/layerclip/

He also have made .PSD import, set viewBox, and so on. Very interesting set of extensions. If this guy is reachable, I suppose my wish may be fulfilled faster?

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
Eman Modnar (eman-mod) wrote :

You can do this, actually.

1. Create a clip so that all objects inside the clip is grouped (there's the preferences' option for creating a group for clipped objects automatically).

2. Then open "XML Editor...", select your new clip on the canvas and press "Unindent node" button in the editor. You can close XML editor after this operation.

3. Now, to make a layer from a group, go to "Objects..." dialog and click on the "Layer/Group" icon (third column under the name "T") next to your clip object.

If you open the "Layers..." dialog you should see a new separate layer for your clipped group and everything that will be drawn in it will be clipped by original clip object.

To edit a clipping path you must convert the layer to a group back by clicking on the same "Layer/Group" icon in the "Objects..." dialog.

Revision history for this message
Reptorian (reptillia-39) wrote :

^^^ It works as a workaround. Only issue is that it isn't efficient. Also, that method works for masking layer as well. It seem like one has to wait for a more efficient workaround to this, and one should be able to directly edit clipping/masking mask like one can do in photoshop. And this gives me a new idea for this, but that is for another time.

Revision history for this message
Reptorian (reptillia-39) wrote :

I mean, more efficient tool**

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.