Hello again!
This generated a code and rendered all layers as well, but the code that Alchemist gave to me when I try to execute I hae the following error:
The code tha Alchesmit gave to me is:
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
"_obj": "6f1c2cf5-4a97-4e32-8f59-f5d7a087adef",
"message": "Configurações da ação Exportar Camadas para Arquivos",
"destination": "Z:\\destination\\path\\layers",
"fileNamePrefix": "layer:",
"visibleOnly": true,
"fileType": 7,
"icc": true,
"jpegQuality": "8",
"psdMaxComp": true,
"tiffCompression": "TIFFEncoding.NONE",
"tiffJpegQuality": "8",
"pdfEncoding": "PDFEncoding.JPEG",
"pdfJpegQuality": "8",
"targaDepth": "TargaBitsPerPixels.TWENTYFOUR",
"bmpDepth": "BMPDepthType.TWENTYFOUR",
"png24Transparency": true,
"png24Interlaced": false,
"png24Trim": true,
"png8Transparency": true,
"png8Interlaced": false,
"png8Trim": true,
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});
I noticed that the alert error was in Portuguese, the translated message would be:
Error 54: Javascript Exception not caught: Error: Unsupported type in descriptorToObject DescValueType.INTEGERTYPE, line:2455
-> throw (new Error("Unsupported type in descriptorToObject" + t) );
Do you know what could it be? 