how to assess blend if-settings with javascript
Some time ago someone in the MacIntosh-forum declared their wish to use a layer’s Layer Style Blend If-setting’s result as a mask (for whatever reasons).
The »This Layer’s« effect is easily enough converted to a mask by grouping and flattening the layer and using the resulting transparency.
But the »Underlying Layer«-setting seems more difficult (naturally as they depend on other layers’ content).
Is there a way to get the current (for an RGB-file 32) numbers of a layer’s Blend If-settings with JavaScript?
Or is there a way to reset the This Layer-Blend If-settings, but leave the Underlying Layer-settings unchanged?
Any help appreciated.

