Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How can I change the font color on a pageItem?

$
0
0

Hello,

This is probably an easy one...

 

I'm looking to change the font color of a pageItem to black, if it's value exceeds a specific value.

 

I'm reading the value of the item from an xml file ::

var avgScore = (xmlImport.average.delivery);

 

 

And then assigning the value to the pageItem which is a text layer called "delivery_score"::

tempLayers.getByName("average_bar").pageItems["delivery_score"].contents = avgScore;

 

What I would love to do is change the font color to black...  I'm not clear how to do this...

I'm not having any luck with text range.

tempLayers.getByName("average_bar").pageItems["delivery_score"].textRange.fillColor =

 

Any advise?

 

Thanks!


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>