Sg2.9
Setting fillColor = none
Recent RSS
Setting fillColor = none
From:  Logan
Date:  2. May 2011, 10:22

Sorry cant seem to find the solution to this on my own, I imagine it's pretty simple, but how do I go about setting fillColor=0?

I've tried 0, null, 'none' etc. but nothing seems to work?

Re: Setting fillColor = none
Date:  2. May 2011, 11:28

Setting the fillColor property to null should do it..

Example of removing the fill color of the first selected path:

var paths = document.getItems({
	type: Path,
	selected: true
});

if (paths.length > 0) {
	paths[0].fillColor = null;
}

Please post your code if you still can't get it to work, you're probably making a mistake somewhere else.

Re: Setting fillColor = none
From:  Logan
Date:  2. May 2011, 12:15

this the basic version:

var myPath = new Path();
myPath.strokeColor = '#000000';
myPath.strokeWidth = .2;
myPath.fillColor = null;
myPath.add(new Point(x,y));  etc. etc.

... trying to avoid the user's fill colour at the time of running the script being used as the fill

Re: Setting fillColor = none
Date:  2. May 2011, 15:16

Well your code works for me.. I don't get a fill...

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
Boxes Flow 19.04.12