Sg2.9
Changes in 2.0.024
Recent RSS
Changes in 2.0.024
From:  Jürg Lehni
Date:  16. August 2007, 06:17

The new version 2.0.024 of Scriptographer introduced a few changes that will probably break some of the existing scripts. This post is here to point the sources of these problems out, and to assist you with updating your scripts to work with the new version, which should not be too hard.

But first the changes that are most likely to cause problems:

java.awt.geom inheritanace was removed from Point, Rectangle and Matrix. Point and Rectangle should mostly work the same, but Matrix works differently now since it is not inheriting form java.awt.geom.AffineTransform any longer.

So instead of using the awkward Matrix.getScaledInstance(scale), you would for example use new Matrix().scale(scale). Here a more complex example of concatenated transformations, and a proposed notation for simple reading:

art.transform(new Matrix()
	.translate(x, y)
	.rotate(angle)
	.scale(scale)
);

Also, activeDocument was renamed to document. activeDocument is still supported but deprecated, and will go away in a future version.

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
The Allineatorium 15.05.14