Sg2.9
gardener 2.0
Recent RSS
Creator:  Pedro
Date:  6. September 2006, 23:12

gardener creates nice tendrils from a drawn path. assign one of the scriptographer-tools to the gardener script and select some objects in your document. then start drawing your shape. the selected objects will be used in a random order and size as the end objects of each created branch. make sure you tweak the script options by
a doubleclick on the assigned scriptographer-tool.

note:
you need to smooth the small branches manually. (if you zoom in close, you'll find them very edgy.) do this by selecting all the created branches, then go to the illustrator-menu > object > path > simplify.

credits:
original version by pedro and rob.
converted to sg 2.0 by the mighty graf salamander
with the debugging eye of jürg lehni.
used best with scriptographer 2.0

Re: curves
From:  zaphir
Date:  27. May 2007, 02:19

I fixed the getActiveLayer problem by replacing the line

mainLayer = allLayers.getActiveLayer();

by this one

mainLayer = activeDocument.getActiveLayer();

since allLayers contains a LayerList which doesn't have the getActiveLayer method.

I downloaded the most recent version and used it with Illustrator CS2, so I guess it's either the above mentioned problem in the source or a version problem with Illustrator.

Maybe the author(s) of the script can have a look at it?

greetings
zaphir

Re: curves
From:  zaphir
Date:  27. May 2007, 03:12

btw:

If you comment out (with //) the following block in function "onMouseUp" (at the end) , leaving only the first rotation statement active:

//if (branches[i].rotate < 0)
eobj.rotate(branches[i].vector.getAngle()); <-- this one
//else
//eobj.rotate(branches[i].vector.getAngle() + Math.PI);

the rotation of objects works correct. Before, the rotation was wrong for all branches going to the left.

Also it would be great to add an option to the dialog to set the center of the end-object. Right now it's always put in the very center which is (like in the screenshot for this script) not always the best place.

greetings
zaphir

Re: curves
From:  caspian
Date:  29. June 2007, 15:30

error:
TypeError: Cannot find function getActiveLayer.
at /tools/gardener20.js:212
ReferenceError: "Grayscale" is not defined.
at /tools/gardener20.js:224 (onInit)

(I changed the filename to 20.js thinking the . in 2.0.js might confuse... makes no difference)
Now I'm confused

Re: curves
From:  Marjolein
Date:  26. July 2007, 12:08

after just changing the mainlayer problem. The problem still isn't fixed. The tool still doesn't work. You still get the error:

ReferenceError: "Grayscale" is not defined.
at /tools/gardener20.js:224 (onInit)

This problem is also very easy to solve. I changed the code

black =new "Grayscale" (1);

to

black =1;

at first it's still a bit weird. But somehow after re- selecting the tool it works fine.

Gardener Mac Intel CS3 problem
From:  k
Date:  6. September 2007, 13:24

i used scriptographer with gardener on pc and it worked great and smooth. but recently I switched to mac and all my scriptographer scripts work except gardener. when i use the tool i get:

Java class "com.scriptographer.ai.Matrix" has no public instance field or method named "getRotateInstance". (/Applications/Adobe Illustrator CS3/Plug-ins.localized/Scriptographer/scripts/tools/gardener2.0.js#310)

When I try to open option for it i get:

The choice of Java constructor setSize matching JavaScript argument types (com.scriptographer.ai.Point) is ambiguous; candidate constructors are:
void setSize(com.scriptographer.adm.Size)
void setSize(com.scriptographer.adm.Point) (/Applications/Adobe Illustrator CS3/Plug-ins.localized/Scriptographer/scripts/tools/gardener2.0.js#49)

Is that a problem with java? Any ideas?

Re: Gardener Mac Intel CS3 problem
From:  k
Date:  6. September 2007, 14:53

OK. I didnt notice that the API had changed.

changing

branch.vector = branch.vector.transform(Matrix.getRotateInstance(branch.rotate));
to
branch.vector = branch.vector.transform(Matrix().rotate(branch.rotate));

fixed the script. However i still cant get the option dialog to work

regards.

Gardener Win CS3 problem
From:  Alexandre
Date:  21. September 2007, 09:23

Still don't work for me ...and i don't know what to modify... will there be an upgrade ? I accept the license but it still continues to save as a txt file and when i change the extension it doesn't work....even if turn black to 1 and active Layer by Active document...etc...

[quote]
SOLVED
[/quote]
but i've still this and get stuck...
"La classe Java "com.scriptographer.ai.Matrix" ne poss&#65512;de aucun champ ou aucune m&#65513;thode d'instance publique appel&#65513; "getRotateInstance" (C:\Program Files\Adobe\Adobe Illustrator CS3\Modules externes\Scriptographer\scripts\tools\gardener2.0.js#310)"
etc....
Please help needed ...The result seems too beautiful too avoid testing it ^^ Thanks

Re: Gardener Win CS3 problem
From:  Jürg Lehni
Date:  22. September 2007, 19:59

Ok, this script is now updated to work with the new version of SG. Apologies for breaking it months ago by changing the API and then not taking care of the consequences.

Re: Gardener Win CS3 problem
From:  superstar
Date:  5. October 2007, 14:44

can somebody explain how to work with this tool? i have done everything, but it doesn't work. currenty i'm working with illu cs3 on an imac core 2 duo, os 10.4.10.

any other script just work, but this one not.

thank

Re: Gardener Win CS3 problem
From:  rensio
Date:  1. March 2008, 23:00

hiiii AWsome tool!! thanks!

only bug I have is that when I close down the script tweak screen, illustrator crashes. happens every time

I use WinXP and CS3

but hey thanks anyway the tool is GREAT

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