Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to change Font Color by script?

Avatar

Level 1

Hi,all:

I am a newbie in this forums,

I already found the way to change the font facetype like this script:

xfa.Text1.resolveNode("caption.#font").typeface  =  "Times New Roman";

but still not found the way to change the font color by script.

Anyidea? thank you!

2 Replies

Avatar

Level 10

Hi,

The following Adobe guide is very useful for scripting against objects:

http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

For example, chaning the colour of the caption to red would be:

Text1.caption.font.fill.color.value = "255,0,0"

Good luck,

Niall

Avatar

Level 1

Thank you!

The answer is very helpful to me!

Thanks again!