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

It is possible to get guides position?

Guest
May 18, 2010 May 18, 2010

Copy link to clipboard

Copied

I want to get position of guide line.

Please teach me how to get position of guide line, if anyone know way of it.

TOPICS
SDK

Views

821

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

correct answers 1 Correct answer

Adobe Employee , May 18, 2010 May 18, 2010

Guide support was added for CS5 via scripting or automation plug-ins. There is no example in the C/C++ SDK but there is documentation in the JavaScript guide. From the JavaScript guide in your "Scripting" folder that is part of the CS5 install.

guides collection of type Guides has been added to the Document object.

so in JavaScript you would access them by

if ( activeDocument.guides.length ) {

     alert(activeDocument.guides[0].direction);

     alert(activeDocument.guides[0].coordinate);

}

In C/C++ yo

...

Votes

Translate

Translate
Adobe
Adobe Employee ,
May 18, 2010 May 18, 2010

Copy link to clipboard

Copied

Guide support was added for CS5 via scripting or automation plug-ins. There is no example in the C/C++ SDK but there is documentation in the JavaScript guide. From the JavaScript guide in your "Scripting" folder that is part of the CS5 install.

guides collection of type Guides has been added to the Document object.

so in JavaScript you would access them by

if ( activeDocument.guides.length ) {

     alert(activeDocument.guides[0].direction);

     alert(activeDocument.guides[0].coordinate);

}

In C/C++ you could do the same but it would take a lot of effort. Use the Gettter and Listener plug-in to see how to access the guides in that language.

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
Guest
May 20, 2010 May 20, 2010

Copy link to clipboard

Copied

LATEST

Thanks for the reply!

I'm trying install and study CS5 SDK.

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