Copy link to clipboard
Copied
Hi Team,
I need your help for the below process.
Please find the attached screenshot. I have two guides in that page. I need to check the pageitem offset value from the guides individually.
The logic is:
1) Select first guide and check the offset value for the objects near by that guide and alert the values
2) Select second guide and check the offset value for the objects near by that guide and alert the values
Is it possible?
Thanks in advance.
Regards,
Karthi
Copy link to clipboard
Copied
Hello Friends,
Expecting your answers for the above question.
Regards,
Karthi
Copy link to clipboard
Copied
Well, i'm glad you are expecting.
What have you tried so far?
Copy link to clipboard
Copied
Hi Vamitul,
Thanks for your reply. I am new in scripting. So i tried the below coding by referring forums.
var myDocument = app.activeDocument;
myDocument.zeroPoint = [0,0];
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
alert(myDocument.pages.item(0).textFrames.item(0).geometricBounds);
It gave the bounding value for one object.
Regards,
Karthi
Copy link to clipboard
Copied
Hi Vamitul,
If it is too difficult, then can we find if any object overlap on the guides?
Regards,
Karthi