Sg2.9
AreaText / Path
Recent RSS
AreaText / Path
From:  LNP
Date:  20. March 2009, 12:21

Curious...

I recently installed scriptographer for CS3, ran a CS1 script, and everything bar ArexText runs smoothly. It seems to be having all manner of problems with creating a new Path.

simple code:

var npath = new Rectangle(200, 200, 300, 50);
var tpath = new Path(npath);
var text = new AreaText(tpath);
text.content = "Hello there"

error:

Java constructor for "com.scriptographer.ai.Path" with arguments "com.scriptographer.ai.Rectangle" not found. (/Applications/Adobe Illustrator CS3/Plugins.localized/Scriptographer/scripts/old/explore/typearea_cs3.js#2)

enlightenment very much appreciated!

Re: AreaText / Path
Date:  25. March 2009, 16:01

You can't make a rectangular path by passing the Path constructor a rectangle. Document has some functions to create primitive shaped paths, though: http://www.scriptographer.com/Reference/AI/Document/

var npath = new Rectangle(200, 200, 300, 50); 
var tpath = document.createRectangle(npath); 
var text = new AreaText(tpath);
text.content = "Hello there"
Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Crumpler 23.07.10