Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How do I retrieve the color of the middle of a text string?

$
0
0

I want a .jsx script to fetch the RGB value for all characters in my string. If I read the following:

 

 

var layer = app.project.activeItem.layer(1);

var doc = layer.property("Source Text").value;      

 

I get fillColor, which has RGB's for the start of the string (the "blue" part), but how can I get at the "red" and the trailing "blue"? I just need to read these properties rather than change them.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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