PS Script: Fix for Wavelet Decompose.jsx?
Some weeks ago I noticed a retoucher had an action for "Wavelet Decompose".
At that time I didn't know it was for frequency separation (which I'm not really needing much, or mastering yet), so out of curiosity I Googled and found this script ...
https://github.com/coderand/photoshop
IIRC, it still works in PS 2019, but in my PS 21.2.4 it doesn't.
It is supposed to open a new document where it will make the requested layers. This is where it seems to get stuck in newer versions of PS...
I think the problem might be in this part...
var waveletDoc = app.documents.add(
app.activeDocument.width,
app.activeDocument.height,
app.activeDocument.resolution,
app.activeDocument.name + "-" + activeLayer.name + "-Wavelet",
NewDocumentMode.RGB, DocumentFill.TRANSPARENT,
app.activeDocument.pixelAspectRatio,
BitsPerChannelType.SIXTEEN
);
If you see an obvious mismatch for newer PS versions, please suggest a change.
OTOH, I don't really need this at all (AFAIK), so don't waste your time for me... 😉
