finding features in InDesign, I want a rectangle known coordinates can move I would be glad if you write for this scprit
finding features in InDesign, I want a rectangle known coordinates can move
I would be glad if you write for this scprit
finding features in InDesign, I want a rectangle known coordinates can move
I would be glad if you write for this scprit
If you want to get coordinates, select a rectangle and try the below code:
var rectangleBounds = app.selection[0].geometricBounds;//array
alert(rectangleBounds[0]);
alert(rectangleBounds[1]);
alert(rectangleBounds[2]);
alert(rectangleBounds[3]);
if you want move rectangle,
app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
app.selection[0].move([0,10])//x-axis and y-axis
Vandy
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.