Illustrator脚本更改所选文本fillcolor

时间:2018-08-03 18:27:10

标签: javascript adobe

我想更改选定的文本填充颜色,下面发布的代码不起作用:

var newRGBColor = new RGBColor();
newRGBColor.red = convertedcolor['r'];
newRGBColor.green = convertedcolor['g'];
newRGBColor.blue = convertedcolor['b'];  

var docSelected = app.activeDocument.selection;  

for (j=0; j<=docSelected.length; j++){
    textArtRange = app.activeDocument[j].textRange;
    textArtRange.characterAttributes.fillColor = newRGBColor;  
} 

0 个答案:

没有答案