Some Channel operations are seriously slow

Discussion of actual or possible Photoshop Scripting Bugs, Anomalies and Documentation Errors

Moderators: Tom, Kukurykus

Timo Autiokari

Some Channel operations are seriously slow

Post by Timo Autiokari »

Hi,

have you noticed that commands like:

var myCh = activeDocument.channels[0].name;

are sometimes _extremely_ slow.

It seems that every time the channels object is accessed it prepares the Histogram and the larger the image is the more slow the operation is.

So, when I first make a 1x1 pixel selection and then access the channels object it is very fast no matter what the image size is.

Timo Autiokari
theiviaxx

Some Channel operations are seriously slow

Post by theiviaxx »

thank you for posting this! Saved my butt