Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by Ken_Darby
Fri, 27 Feb 2009 21:28
(JS CS4) How to draw line
Author: Ken_Darby
Date: Fri, 27 Feb 2009 21:28
Date: Fri, 27 Feb 2009 21:28
2 lines
759 bytes
759 bytes
I am such a rookie when it comes to scripting. My challenge is to draw a couple of lines on the master page. I have a 3 column text frame on the master page and want to place a line between the columns. Any help would be appreciated.
Re: (JS CS4) How to draw line
Author: Thomas_Bolbro_Nielsen
Date: Fri, 27 Feb 2009 23:44
Date: Fri, 27 Feb 2009 23:44
7 lines
894 bytes
894 bytes
Hi Ken, I wrote this script that may help you. If anyone can tell me a better way of calculating placement of the lines, please let me know - such a dork at math :-) And btw - please also let me know how to properly consider insetspacing. <http://www.nobrainer.dk/create-graphiclines-between-columns>
Re: (JS CS4) How to draw line
Author: Ken_Darby
Date: Mon, 02 Mar 2009 15:27
Date: Mon, 02 Mar 2009 15:27
11 lines
1217 bytes
1217 bytes
Thanks Thomas, That seems to work fine. And it put the graphicline exactly where it should be. I notice that the placement of the line is related to the weight of the stroke on the text frame. I was using the stroke centered on the path and a stroke weight of 1 point. That translated to the graphicline being positioned .333 pt from the mathematically correct position. By changing the stroke on the text frame to stroke on the outside of the path, it returned to the proper position. I have not had to consider the text inset since I control that in the paragraph styles of the text. Thank you for your help. Ken
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads