Some Channel operations are seriously slow

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

Moderators: xbytor, DavideBarranca, Paul MR

Timo Autiokari

Some Channel operations are seriously slow

Postby Timo Autiokari » Sun Apr 15, 2007 7:22 am

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

Postby theiviaxx » Mon Apr 30, 2012 10:58 pm

thank you for posting this! Saved my butt :)


Return to “Photoshop Scripting Bugs and Anomalies”

Who is online

Users browsing this forum: No registered users and 1 guest