Script that replaces layers but keeps opacity and blending mode of replaced layer.
Hello, I looking for a script that can replace a layer with several other layers but keep the opacity and blending mode of the replaced layers.
Link to PSD file: https://we.tl/t-JKd8v0Jx3B
Example: I want to replace "_ELEMENT_SPECULAR copy" with "SPECULAR PASS" layers.
Each individual "SPECULAR PASS" have different blending mode and opacity, and I want to keep those.
New render passes:

Old render passes:

I appreciate all the help I can get!