🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8831

Creating graphicLine --- I can not find the catch

#8831
From: mihak
Date: Sun, 24 Sep 2006 16:09
26 lines
1428 bytes
I would like to create a graphicLine.
I learned, how to modify the selected graphicLine through changing the entirePath parameter. Here are lines I was playing with:

myDoc = app.activeDocument;
myPage =app.activeWindow.activePage;
mySelection=app.selection[0];
myGraphicLine=mySelection;
myGraphicLine.paths[0].entirePath=[[[10,10],[20,30],[40,30]],[[100,80],[70,70],[120,90]]];

But I am stucked when I try to create a new graphicLine from scratch.

I started with:
myNewGraphicLine=myPage.graphicLines.add();

Now the question is how to add a path to that graphicLine objects?
I tried to create a path first, and then add it to the graphicLine but

myNewPath=myPage.paths.add();

does not work.

All I want are graphicLines composed of two pathPoint's, each pathPoint having the leftDirection, anchor and rightDirection.

Please help!

Miha
Technical Details
Message-ID: <3bc1c21d.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,cf4dc3b18592a3d1,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: mihak@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Creating graphicLine  ---  I can not find the catch
Message-ID: <3bc1c21d.-1@webcrossing.la2eafNXanI>
Date: Sun, 24 Sep 2006 09:09:13 -0700
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit