By the way, as i remember this sort of missing clipping Pass Through mode was discussed earlier, but in less details.
It is possible to emulate Pass Through clipping using virtual copy of the group and with applied Levels intensity in HIS mode to adjust the brightness of that virtual copy, like this:
How do I clip pixel layers to vector layers for shading
-
- Mitglied
- Posts: 1784
- Joined: Mon 23 Dec 2019 15:21
- Location: Ukraine
Re: How do I clip pixel layers to vector layers for shading
You do not have the required permissions to view the files attached to this post.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
-
- Mitglied
- Posts: 229
- Joined: Sat 28 Sep 2024 17:04
Re: How do I clip pixel layers to vector layers for shading
Thanks for that @Shijan. This is a workaround that may work for simple scenarios, yes. But it doesn't work for most situations. A pass through blend essentially helps to create mini documents within documents. Toggling pass through on and off helps to create degrees of isolation that are hard to achieve in any other way.
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
Wait, but: pass through mode set to a group in Photoshop merely ignores the effect of grouping, and treats groups as an organizational tool only.
In PhotoLine --as far as I am aware-- a group already behaves exactly like that when Draw Isolated is left inactive. There is no difference. That is also why it is impossible to select a blend mode.
Granted: instead of that checkbox perhaps it would be preferable to add a Pass Through blend mode to improve the usability of this function.
Or am I missing something here?
In PhotoLine --as far as I am aware-- a group already behaves exactly like that when Draw Isolated is left inactive. There is no difference. That is also why it is impossible to select a blend mode.
Granted: instead of that checkbox perhaps it would be preferable to add a Pass Through blend mode to improve the usability of this function.
Or am I missing something here?
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
...There remains an issue. In Photoshop it is easy to use the vector layer (or bitmap layer) as a clipping mask for the layers above (using the ALT key). The contents of that vector layer remains visible. And then it is simple to paint shading layered on top of it.
This setup cannot be replicated in PhotoLine without the addition of an extra virtual layer, because the underlying vector layer cannot clip the content above by itself. Moving that layer on top of the shading layer merely hides the shading, unless the blend mode is changed of the vector layer. But that is unwanted behaviour. The underlying layer should clip the shading layer(s) above.
As far as I am aware, there is no direct equivalent in PhotoLine to duplicate this approach with just two layers AND also maintain the required pass-through behaviour (the layers' blend mode affect the layers below in the layer stack).
The only solution is to virtually clone the underlying vector layer, and place it on top as a clipping mask layer. That means one additional layer in the stack, though.
This has nothing to do with the lack of a pass through layer blend mode (because in effect this actually the default behaviour of a group in PhotoLine), but is the result of a missing option to allow a layer lower in the layer stack to clip the contents higher up in the layer stack AND keeping the content of that lower layer visible.
Here is Photoshop's clipping mask. When grouped and with the group set to Pass Through the blend mode of the layers will comp with the underlying layers in the file. Here is PhotoLine's solution:
The layers will blend with the underlying layers in the composition, but it does require that extra virtual copy to clip the contents.
As far as I can tell, there exists no other way to replicate Photoshop's behaviour.
This setup cannot be replicated in PhotoLine without the addition of an extra virtual layer, because the underlying vector layer cannot clip the content above by itself. Moving that layer on top of the shading layer merely hides the shading, unless the blend mode is changed of the vector layer. But that is unwanted behaviour. The underlying layer should clip the shading layer(s) above.
As far as I am aware, there is no direct equivalent in PhotoLine to duplicate this approach with just two layers AND also maintain the required pass-through behaviour (the layers' blend mode affect the layers below in the layer stack).
The only solution is to virtually clone the underlying vector layer, and place it on top as a clipping mask layer. That means one additional layer in the stack, though.
This has nothing to do with the lack of a pass through layer blend mode (because in effect this actually the default behaviour of a group in PhotoLine), but is the result of a missing option to allow a layer lower in the layer stack to clip the contents higher up in the layer stack AND keeping the content of that lower layer visible.
Here is Photoshop's clipping mask. When grouped and with the group set to Pass Through the blend mode of the layers will comp with the underlying layers in the file. Here is PhotoLine's solution:
The layers will blend with the underlying layers in the composition, but it does require that extra virtual copy to clip the contents.
As far as I can tell, there exists no other way to replicate Photoshop's behaviour.
You do not have the required permissions to view the files attached to this post.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Mitglied
- Posts: 229
- Joined: Sat 28 Sep 2024 17:04
Re: How do I clip pixel layers to vector layers for shading
I didn't explain myself clearly enough. Sorry.
It's not merely in shading scenarios that I need to use pass through. For instance, if want to clip adjustments to a particular image in the composition without any masks, I can simply group all the relevant adjustments, and turn on pass through. It's effectively the same as masking. On the other hand, there are scenarios where I want to toggle off the default behaviour of PL. So, independent of the shading scenario, pass through is good to have.
P.S: you're right. You can still already do this I suppose but in a different way. Draw Isolated. Draw Isolated works as an organisational separation.
But simply emulating shading is quite circuitous in PL.
It's not merely in shading scenarios that I need to use pass through. For instance, if want to clip adjustments to a particular image in the composition without any masks, I can simply group all the relevant adjustments, and turn on pass through. It's effectively the same as masking. On the other hand, there are scenarios where I want to toggle off the default behaviour of PL. So, independent of the shading scenario, pass through is good to have.
P.S: you're right. You can still already do this I suppose but in a different way. Draw Isolated. Draw Isolated works as an organisational separation.
But simply emulating shading is quite circuitous in PL.
-
- Mitglied
- Posts: 1784
- Joined: Mon 23 Dec 2019 15:21
- Location: Ukraine
Re: How do I clip pixel layers to vector layers for shading
Grouped Adjustment Layers behave like real pass trough, but Clipping layers don't. In PhotoLine grouped Clipping layers can't clip anything outside the group.Herbert123 wrote: ↑Wed 12 Feb 2025 07:19 Wait, but: pass through mode set to a group in Photoshop merely ignores the effect of grouping, and treats groups as an organizational tool only.
In PhotoLine --as far as I am aware-- a group already behaves exactly like that when Draw Isolated is left inactive. There is no difference. That is also why it is impossible to select a blend mode.
It could be both: "Pass Through" blend mode for Isolated group and checkbox for Layer in Layer Attributes.Granted: instead of that checkbox perhaps it would be preferable to add a Pass Through blend mode to improve the usability of this function.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
Yes, true - I forgot about the "super adjustment layer" and grouped adjustment layers.shijan wrote: ↑Wed 12 Feb 2025 09:25Grouped Adjustment Layers behave like real pass trough, but Clipping layers don't. In PhotoLine grouped Clipping layers can't clip anything outside the group.Herbert123 wrote: ↑Wed 12 Feb 2025 07:19 Wait, but: pass through mode set to a group in Photoshop merely ignores the effect of grouping, and treats groups as an organizational tool only.
In PhotoLine --as far as I am aware-- a group already behaves exactly like that when Draw Isolated is left inactive. There is no difference. That is also why it is impossible to select a blend mode.It could be both: "Pass Through" blend mode for Isolated group and checkbox for Layer in Layer Attributes.Granted: instead of that checkbox perhaps it would be preferable to add a Pass Through blend mode to improve the usability of this function.
Sure, Pass Through could be exposed in both ways.
I do have to add here that while PhotoLine needs an extra virtual layer to solve this, Clipping masks/layers in Photoshop are much more limited. We have more freedom in PhotoLine thanks to the virtual layer system.
Give and take. Depends on the context. That said, it would be nice to have some kind of clipping layer option that allows us to clip using a bottom layer and still display its contents without the need for an additional virtual clone.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
To be honest, I don't mind this too much - there is a solution.
But the one thing missing in PhotoLine's layer stack that I sorely miss is the option to chain/lock the transformation between layers/groups.
I desperately want to be able to lock the transformation between layers anywhere in the layer stack. We can virtually clone layers to use as masks anywhere - but no option to propagate the transformations between those masks and other related layers by simply locking that transformation between them.
But the one thing missing in PhotoLine's layer stack that I sorely miss is the option to chain/lock the transformation between layers/groups.
I desperately want to be able to lock the transformation between layers anywhere in the layer stack. We can virtually clone layers to use as masks anywhere - but no option to propagate the transformations between those masks and other related layers by simply locking that transformation between them.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Betatester
- Posts: 4106
- Joined: Sun 03 Jul 2005 13:35
- Location: Deutschland
Re: How do I clip pixel layers to vector layers for shading
So I googled a little what that Passthrough is doing. And I was thinking why I never missed that Passthrough. Not 100% sure what it is, but it seems to be a matter of UI.
- PS and others have "Passthrough" or "Other blend modes"
- PL has "draw isolated" or not "draw isolated". Not isolated = "Passthrough", and isolated = "Other blend modes enabled"
The whole topic came up when "draw isolated" was needed for protecting transparency/ clip an object to the shape of another object below. "Draw isolated" solves that problem, but no there's a new one: An adjustment, multiplication layer or whatever in that group that should also affect the background outside the group.
So I was thinking about the most complicated stuff: A slightly matte green glass bottle with a label, filled half with water, causing caustics and dropping shows on the background. That would include blurring the background in the shape of the bottle, imho the perfect example where "draw isolated" would prevent simply including that adjustment into the group.
I would keep the blur behind the isolated group of the bottle, clip with a virtual copy of the shape, and group it all into "whole bottle". With shadows and caustics you would end up with a similar layer stack anyways.
- PS and others have "Passthrough" or "Other blend modes"
- PL has "draw isolated" or not "draw isolated". Not isolated = "Passthrough", and isolated = "Other blend modes enabled"
The whole topic came up when "draw isolated" was needed for protecting transparency/ clip an object to the shape of another object below. "Draw isolated" solves that problem, but no there's a new one: An adjustment, multiplication layer or whatever in that group that should also affect the background outside the group.
So I was thinking about the most complicated stuff: A slightly matte green glass bottle with a label, filled half with water, causing caustics and dropping shows on the background. That would include blurring the background in the shape of the bottle, imho the perfect example where "draw isolated" would prevent simply including that adjustment into the group.
I would keep the blur behind the isolated group of the bottle, clip with a virtual copy of the shape, and group it all into "whole bottle". With shadows and caustics you would end up with a similar layer stack anyways.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
-
- Mitglied
- Posts: 1784
- Joined: Mon 23 Dec 2019 15:21
- Location: Ukraine
Re: How do I clip pixel layers to vector layers for shading
Seems i was able to make it work. You need to use Group with "Show and Clip" view mode.
In addition, if you want to move all this structure together, you can add it to another group and also set it to "Show and Clip" mode combined with Virtual copy applied to raster drawing layer. Note that "Draw Isolated" mode rasterizes vectors, so your masks are no longer vector based. But it is possible to keep everything in vector if instead of using Isolated Group, toggle "Non-Zero-Winding Number" in Toolbox vector settings. So multiple vector layers inside normal group will not mask each other and give you solid filled mask:
In addition, if you want to move all this structure together, you can add it to another group and also set it to "Show and Clip" mode combined with Virtual copy applied to raster drawing layer. Note that "Draw Isolated" mode rasterizes vectors, so your masks are no longer vector based. But it is possible to keep everything in vector if instead of using Isolated Group, toggle "Non-Zero-Winding Number" in Toolbox vector settings. So multiple vector layers inside normal group will not mask each other and give you solid filled mask:
You do not have the required permissions to view the files attached to this post.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
-
- Betatester
- Posts: 4106
- Joined: Sun 03 Jul 2005 13:35
- Location: Deutschland
Re: How do I clip pixel layers to vector layers for shading
You lost me... What was your goal here?
You do not have the required permissions to view the files attached to this post.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
The problem is that to make that transparent clipping work, the group has to be set to "Draw Isolated". But the moment that is the case, the layers inside the group no longer blend with the background outside the group.
The confusion is caused by the white background. @shijan should have used a photo instead to demonstrate the blending issue.
@Hoogo: change the blend mode of the red diamond to multiply. It will multiply with the yellow square, but not with the background because the group is set to isolated drawing.
The wanted behaviour is:
[1] all layers inside the group blend with the content below that is OUTSIDE the group
AND
[2] the brush stroke(s) are clipped by the diamond and square shape
AND
[3] the diamond shape and square shape's content remains visible.
In Photoshop, Krita, Affinity Photo (for example) this is possible without extra clipping layers.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Mitglied
- Posts: 1784
- Joined: Mon 23 Dec 2019 15:21
- Location: Ukraine
Re: How do I clip pixel layers to vector layers for shading
Here is new and probably simplest possible version:
"Protected Underlying Transparency" enabled in painting layer.
Vector objects with enabled "Non-Zero-Winding Number".
"Show and Clip" view mode now use icon from new version of my customization Pack. P.S. seems this version also have a problem - if group everything and enable "Show and Clip", it will use colors of "Protected Underlying Transparency" painting layer as transparency: Version with virtual copy mask don't have this problem:
"Protected Underlying Transparency" enabled in painting layer.
Vector objects with enabled "Non-Zero-Winding Number".
"Show and Clip" view mode now use icon from new version of my customization Pack. P.S. seems this version also have a problem - if group everything and enable "Show and Clip", it will use colors of "Protected Underlying Transparency" painting layer as transparency: Version with virtual copy mask don't have this problem:
You do not have the required permissions to view the files attached to this post.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
-
- Mitglied
- Posts: 2370
- Joined: Sat 12 May 2012 21:38
Re: How do I clip pixel layers to vector layers for shading
I believe my version is still the simplest one?



/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
- Betatester
- Posts: 4106
- Joined: Sun 03 Jul 2005 13:35
- Location: Deutschland
Re: How do I clip pixel layers to vector layers for shading
I think so. Shijans version looks more complicated, because he's experimenting with combining 2 vectors into 1 shape for clipping.
----------------
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!
Herr Doktor, ich bin mir ganz sicher, ich habe Atom! /Doctor, doctor, I'm sure, I've got atoms!