Check out »Create a knockout« in the Help.
You can set the Text Layer above the rectangle Layer to Knockout > Deep in the Blending Options and reduce its opacity.
Oh yeah, I remember now! I *knew* I had done this before.
Thanks so much for the quick reply!
Problem with your layout may be that you seem to have used a Dropshadow.
The Knockout would not be honored there, I think.
But you could convert the test and shape to a Smart Object and apply a Layer Style to that.
Yeah I was thinking of that. The drop shadow is a layer style on the white box, but I created that comp for demonstration only, don't really need the shadow in my real project.
I tought maybe there was a trick to getting a text layer as a mask for a layer, as it is possible to have a vector layer as a mask (when you just add two masks to a layer).
Layers as mask for other layers would be a nice feature tough, Just right click a layer and "use as mask for layer below" or smth.
Thanks for the additional suggestion with smart objects, ill keep that trick in mind, might come in handy.
…Layers as mask for other layers would be a nice feature tough, Just right click a layer and "use as mask for layer below" or smth…
Great feature request, enthusiastically seconded!
And that is the better way indeed!
Ah yeah, sometimes things seems so embarrassingly obvious when you see the simple solution to it :-D