Sg2.9
Setting stroke width in CS3
Recent RSS
Setting stroke width in CS3
From:  Keegan Green
Date:  14. August 2007, 05:28

Been exploring scriptographer for a few weeks now, and so far, love it! I'm slowly figuring out how to do things, but have recenltly run into a snag:

I'm trying to set the stroke of a path in my script, but it doesn't work. I am using cs3 on an intle mac. The code I use to set the stroke is:

path.style.stroke.width = minStroke + Math.random() * (maxStroke - minStroke);

(I'll attach the whole script too)

I have noticed the same problem with another script that sets a random stroke in the same way, the weed_rounded.js. Has there been a change to the way style is implemented?

I read the posts discussing changing the way style works, but didn't read any were if it had actually changed, or how it is implemented now if it did change.

Does anyone else have this problem? Am I doing this correctly? Thanks in advance for your help,

Keegan

Re: Setting stroke width in CS3
From:  Jürg Lehni
Date:  22. August 2007, 00:56

Hi Keegan,

Does this still fail with the new version of the plugin? And make sure your stroke also gets a color, otherwise it will simply not display at all...

Re: Setting stroke width in CS3
From:  Keegan Green
Date:  22. August 2007, 03:23

Hi Lehni,

After making a few unrelated changes to work in the new scriptographer, the randomized stroke does indeed work!

Thanks for the advice on stroke color too.

I'll post the finished script soon...

Keegan

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
Lissajous 10.01.13