About BitmapLayerManager trying to get the value of the number of layers in the PSD file.

Good day.

I am trying to get the value of the number of layers in the PSD file.
The file is attached.
If you look at this file in Photoshop, the number of layers is 4.
But the script

testmap = "D:\\FPSD.psd"
BitmapLayerManager.getLayerCount testmap

returns 0.

Am I doing something wrong?

In work I use 3ds Max 2015 and Photoshop CC 19.1.5

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Any's picture

Attached file

Attached file

AttachmentSize
fpsd.rar 7.53 MB
jahman's picture

.

Most likely Adobe has changed the way this information is stored in PSD file headers so the BitmapLayerManager can't access it anymore.

Any's picture

it turns out, that there is

it turns out, that there is no format left for multilayer images....

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.