Page 1 of 1

cs4 bug with selectAll/contract breaks script

Posted: Thu Jan 07, 2010 10:08 pm
by sabru
I have a number of scripts that break in cs4 because they try to selectAll and then contract/feather/expand etc.. Has anyone run into this here? I tried to find it in the forum with no success.

Tried to correct it with a selection array based on the corners of the canvas, but broke again when a function tried to use invert and expand to exclude areas from the selection, as below;

selectColorRange/invert/expand/invert - yealding a full selection

I can't see this being considered an addition to photoshop by adobe so I am assuming it's a bug. Any help would be greatly appreciated. Thanks!

cs4 bug with selectAll/contract breaks script

Posted: Fri Jan 08, 2010 12:05 am
by Mike Hale
There is a known issue when the selection is the same as the document bounds. I will leave it up to Adobe to call it a bug. Because in the GUI all menu items under Select-Modify are grayed out except for border, it may be that is expected behavior.

For contract you can use scriptlistner to transform the selection and scale down.

For feather you still have to transform to get the selection away from the edge of the canvas. Once that is done you can feather.