Transform properties width
Hi
Is it possible to get the value shown in the width box in the tranform panel, through a script ?
I have tried substracting geometricbounds values, but for every embedded link(png/psd), the values are not matching.
Hi
Is it possible to get the value shown in the width box in the tranform panel, through a script ?
I have tried substracting geometricbounds values, but for every embedded link(png/psd), the values are not matching.
I am not aware of any alternative method to read the width of an element except using the geometricBounds coordinates.
Select an element and try this:
var gb = app.selection[0].geometricBounds;
var width = gb[3] - gb[1];
alert(width);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.