Known Participant
June 10, 2020
Answered
[Script] How can I get the width and height?
- June 10, 2020
- 2 replies
- 7783 views
How can you measure the width and height of an item?
I tryed code:
document = app.activeDocument;
layer = document.layers.getByName('Test');
item = layer.pageItem.getByName('A');
alert("WIDTH: "+item.width+", HEIGHT: "+item.height);
But the data was strangely printed.
width: 31mm
height: 4mm
Result data:
width: 101mm
height= 24mm
