• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Urgent: Need offset values

Guide ,
Oct 15, 2015 Oct 15, 2015

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

Screen Shot 2015-10-15 at 5.59.19 PM.png

TOPICS
Scripting

Views

338

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 15, 2015 Oct 15, 2015

Copy link to clipboard

Copied

Hello Friends,

Expecting your answers for the above question.

Regards,

Karthi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 16, 2015 Oct 16, 2015

Copy link to clipboard

Copied

Well, i'm glad you are expecting.
What have you tried so far?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 16, 2015 Oct 16, 2015

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 16, 2015 Oct 16, 2015

Copy link to clipboard

Copied

LATEST

Hi Vamitul,

If it is too difficult, then can we find if any object overlap on the guides?


Regards,

Karthi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines