You should check out the expression language section of the help menu. Colors are determined with an array with four vapes. The value range is from 0 to 1 with as many decimal points as you like. The values describe the Red, Green, Blue and Alpha channel value for a color. For example adding this to an expression for fill color gives you 50% gray: [.5, .5, .5, 1]
You can find the color values for elements in your comp panel by observing the info panel. Set the display to decimal:
Then sample a color and you'll get the values to type in the array:
Did Rick's info help you solve this issue? Please let us know. Provide more details for further assistance.
thank you,,Rick's info helps me too..and I think I got the way to solve my problem,,
and I will explain more clearly and more exactly next time.
Good to hear from you! How do you plan to solve the issue? What's your idea? Let us know so we can assist, if possible.
maybe this is the answer I want that time;
var layer = app.project.activeItem.layer(1); //get an textLayer
var textLayerDocument = layer.property("Source Text").value; //get fill color value
textLayerDocument.fillColor = [0.5, 0.5, 0.5]; //stort fill color value to [0.5, 0.5, 0.5] for textDocument object
layer.property("Source Text").setValue(textLayerDocument); //set textDocument value for textLayer "Source Text" property;