Sg2.9
NaN values for segments creat...
Recent RSS
NaN values for segments creates confusion.
Date:  7. February 2012, 16:42

Hello,
Today i made a script which accidentally assigned a NaN value to the x/y values of a segment. This caused Scriptographer to behave erractically and spitting out error messages on every keypress and mouse event in scriptographer until i restarted Illustrator.

To recreate the bug in CS5:
create a new path/shape and select it.
in the scriptographer console type:
document.selectedItems[0].segments[0].point.x = NaN

now the sg console outputs "Invalid coordinates: { x: NaN, y: 215.02588 }" on every keypress in the console, and on every mouse event sg panel.

if I delete the shape the error message "The item is no longer valid, either due to deletion or undoing. Use isValid() checks to avoid this error."
is output on every key/mouse event until i restart Illustrator.

Cheers

Henrik

Re: NaN values for segments creates confusion.
Date:  7. February 2012, 17:54

Hi Henrik,
tried this one out myself and experienced the same result as you. When reloading Scriptographer AI takes a nose dive.

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
Area Type Resizer 03.08.12