Sg2.9
color and text
Recent RSS
color and text
From:  Jirka
Date:  18. March 2007, 01:31

well, another one :) I will probably become very frequent discusser here: I love the tool and don't have any idea how to use it

What about controling text colors? (for paragraphs or single characters)
I tried to modify the random colors script (as it is very simple and even I understand how it works):

var sel = activeDocument.getMatchingItems(Art, { selected: true });
for (var i = 0; i < sel.length; i++) {
art = sel[i];
var mycolor = new RGBColor(Math.random(), Math.random(), Math.random(), Math.random());
if (art.paragraphStyle.fill.color != null) art.paragraphStyle.fill.color = mycolor;
}

I replaced "Path" with "Art", so it should work for any selected objects. And then it was over. I think I understand I have to add to a text object a different description then to a path. But which is the right one? Or does it work at all in this way?

Thanks..

Re: color and text
From:  ben
Date:  25. March 2007, 19:48

Same question for me :
how to change color of simple text (not a block) ?
or just know how to get the type of selected items ?

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
Mosaic Staple Raster 24.03.10