Copy link to clipboard
Copied
Hi Everyone.!
i'm new baby to indesign script. Actually i link one Eps image to picture box.
now i want the height and width of eps image,angle and also need X and Y coordinates....
anyone help me..?
Thanks in Advance.
-yajiv
Harbs, that gives width and height.
The center point is at (geometricBounds[3] + geometricBounds[1])/2, geometricBounds[2] + geometricBounds[0])/2 (alternatively, geometricBounds[1] + width/2, geometricBounds[0] + height/2 -- which comes down to the same).
As for the angle, rotationAngle sounds about right, but compare to absoluteRotationAngle -- that seems to be a total value for multiple nested and rotated objects.
Oh, and you want the shear as well? Every graphic item also has a shearAngle and,
...Copy link to clipboard
Copied
Use either the geometricBounds or visibleBounds properties of the object.
Dave
Copy link to clipboard
Copied
If you're dealing with frames which might have been rotated, you're probably going to want to use visibleBounds.
Copy link to clipboard
Copied
Hi Harbs & Dave !.
Thanks for Quick replay. I get the height and width of the content.
-yajiv
Copy link to clipboard
Copied
Hi Harbs & Dave !..
Thanks for Quick replay. I get the height and width of the content but i can't findout X and Y co-ordinates... exactly i need center position of x and y co-ordinates.. i attach some picture for ur clarification..Thanks in Advance..!
-yajiv

Copy link to clipboard
Copied
y= bounds[2]-bound[0];
x=nounds[3]-bounds[1];
Copy link to clipboard
Copied
Harbs, that gives width and height.
The center point is at (geometricBounds[3] + geometricBounds[1])/2, geometricBounds[2] + geometricBounds[0])/2 (alternatively, geometricBounds[1] + width/2, geometricBounds[0] + height/2 -- which comes down to the same).
As for the angle, rotationAngle sounds about right, but compare to absoluteRotationAngle -- that seems to be a total value for multiple nested and rotated objects.
Oh, and you want the shear as well? Every graphic item also has a shearAngle and, to top it off, an absoluteShearAngle as well.
Copy link to clipboard
Copied
[Jongware] wrote:
Harbs, that gives width and height.
Yeah. That's what happens when you respond without thinking... ![]()
Copy link to clipboard
Copied
Thank you very much for such work..
Jongware and Harbs.
Thanks lot..![]()
-yajiv
Find more inspiration, events, and resources on the new Adobe Community
Explore Now