Copy link to clipboard
Copied
I tried to get width of LayerSet (folder)...
ExtendScript return correct width
// return correct width (200px)
var width1 = app.activeDocument.activeLayer.boundsNoEffects[2].value - app.activeDocument.activeLayer.boundsNoEffects[0].value;
but with ActionManager i have a trouble
// return incorrect width (1000px = document width)
var ref = new ActionReference();
ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));
var width2 = executeActionGet(ref).getObjectValue(stringIDToTypeID("boundsNoEffects")).getDouble(stringIDToTypeID("width"));
How to Get correct LayerSet width from AM? Any ideas?
Copy link to clipboard
Copied
Seems it’s one of those things … I think there are a few things that are more difficult or even impossible to get with AM code.
You could file a bug report, but I am afraid Scripting issues are often considered low priority at Adobe because most Photoshop users do not concern themselves with the subject matter anyway.