Known Participant
Jun 10, 2020 11:00 PM UTC
Answered
[Script] How can I get the width and height?
- 10 replies
- 7885 views
- Translate
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
