Sg2.9
fiddlehead
Recent RSS
Creator:  Hiroyuki Sato
Date:  6. July 2006, 23:43

fiddlehead.js (fiddlehead fern : zenmai)
A drawing tool that creates fiddlehead-like shapes.
Several parameters can be adjusted with the option dialog box.

(This is my first post here. Please let me know if there's anything unsuitable.)

changelog :
2006-07-07, 09, 20 (see inside script file for details)
2006-10-29 fix to work with ver.2.0.019 of Scriptographer (Grayscale -> GrayColor). other minor modifying in onOptions()
2008-03-27 modified for Sg 2.0.025
2008-04-01: minor fix on dialog function
2009-?-? official staff modified to work with Sg 2.5. Thanks!
2010-02-21 added some function for the dialog (works with Sg 2.6)

amazing!
From:  Pedro
Date:  7. July 2006, 00:59

what an interesting script!
i really like the directionmodifier while drawing.

Re: amazing!
From:  Jürg Lehni
Date:  10. July 2006, 10:50

Very nice, Hiroyuki!

I saw on your website http://park12.wakwak.com/~shp/lc/et/en_aics_script.html that you worked on several very interesting scripts for the AICS JavaScript. Is there any chance you will start porting some of these to Scriptgrapher?

Problem
Date:  10. July 2006, 15:23

I get this problem? What should i do?

C:\Program\Adobe\Adobe Illustrator CS\Plugin-program\Scriptographer\scripts\tools\fiddlehead.js:1,3: syntax error (C:\Program\Adobe\Adobe Illustrator CS\Plugin-program\Scriptographer\scripts\tools\fiddlehead.js#1)

java.lang.NullPointerException

at com.scriptographer.ai.Tool.setScript(Tool.java:68)

at com.scriptographer.gui.MainDialog$ToolButton.onClick(MainDialog.java:286)

at com.scriptographer.adm.Button.onNotify(Button.java:75)

at com.scriptographer.adm.NotificationHandler.onNotify(NotificationHandler.java:55)

Re: amazing! / Re: Problem
From:  Hiroyuki Sato
Date:  11. July 2006, 04:17

to Lehni:
Once I ported some scripts for former version of Scriptographer.
They are at
http://park12.wakwak.com/~shp/lc/et/en_sg.html
I plan to rewrite them for ver.2.0.
But, at the present, I want to try the various functions specific to Scriptographer rather than to rewrite my old scripts.
It's great fun to create new tools! though it's still not always easy for me.

to Alexander:
Thanks for report, but at least on my environment (ver.2.0.015, CS, Windows2000SP4), I can't reproduce this type of error. It says a syntax error occurred at character 3 of line 1. But line 1 is a comment, and has only 2 characters ("/*"). Character 3 of line 1 is a line feed code.
So, I guess something wrong occurred in downloading (such as automatic character conversion). Otherwise, it caused by other environmental factor.
I put a zip archive at
( ### The file had removed. See following my comment for detail ### )
(I'll remove this file in the near future to avoid confusion.)
It contains 2 script files which differ only in line feed code(CRLF/CR).
I'd like you to try these. And if possible, please let me know whether these work or not. If both of these raise errors, there might be nothing I can do for now.

Re: amazing! / Re: Problem
From:  Hiroyuki Sato
Date:  30. November 2006, 13:09

I realized what had caused this type of error. Every script is linking to the licence agreement page that explains the terms which must be accepted before download.
So, anyone who tries to download with "save-link-as" in the context menu only can get the linked page itself (that page's HTML file).

So, I'd removed the file above to avoid confusion.

Re: amazing! / Re: Problem
Date:  9. December 2009, 20:42

New version of scriptographer for CS4 works great once I adjusted by many scripts indicate on my machine and in Dreamweaver that they have a syntax error. Like fiddlehead, which I love to play with and until this version always worked and set color with line color. Now it will only produce a version in black.

The line which indicates it has a syntax error is:

line = new Path(){

______________________________________________________________

function makeline(){
line = new Path() {
fillColor: null,
strokeColor: lineCol,
strokeWidth: lineWidth
};
if(!gr) gr = new Group();
gr.appendChild(line);
}
______________________________________________________________
Just beginning to explore the coding side and am frustrated with the change.

As an aside when I look at cube.js or column.js I see a similar or related syntax error as well.

Re: amazing! / Re: Problem
Date:  10. December 2009, 13:48

Actually this is a feature of the Rhino javascript engine we use.

var line = new Path() {
	fillColor: null,
	strokeColor: lineCol,
	strokeWidth: lineWidth
};

The convention above is a shortcut for:

var line = new Path();
line.fillColor: null;
line.strokeColor: lineCol;
line.strokeWidth: lineWidth;

So even though Dreamweaver thinks it is a syntax error, it works within Scriptographer (and anything else that runs on Rhino).

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