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.
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
...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.
Copy link to clipboard
Copied
Thanks for the reply!
I'm trying install and study CS5 SDK.