Hello,
i want to get the bounds of the frame tool but it is always 0. If there is an image it shows the bounds of the image. Is there a way to get the bounds of the empty frame?
Best regards
Chris
frame tool bounds always 0
Re: frame tool bounds always 0
Code: Select all
sTT = stringIDToTypeID;
(ref = new ActionReference())
.putProperty(sTT('property'), sTT('framedGroup'))
ref.putEnumerated(sTT('layer'), sTT('ordinal'), sTT('targetEnum'))
cnt = (dsc = executeActionGet(ref).getObjectValue(sTT('framedGroup')).getObjectValue(sTT('framedGroupRect'))).count
tlbr = {}; for(i = 0; i < cnt;) tlbr[sde] = dsc.getDouble(sTT(sde = typeIDToStringID(dsc.getKey(i++)))); alert(tlbr.toSource())
Re: frame tool bounds always 0
Thank you, it is working!