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

source text set value at time

$
0
0

Hey,

 

I am a begginer at AE scripting. I'd like to change text color over time. I have already done this with f.e. scale property. I'd like to do the same with color. So until now Ive changed the color once:

 

    //CHANGING SOURCE TEXT PROPERTIES {{{

        var compSourceText = comp.layer(1).property("Source Text");

        var compTextValue = compSourceText.value;

       

        compTextValue.fillColor = [1,  0,  0];

 

        compSourceText.setValue(compTextValue);   

 

    // }}}  

 

How can I change it at given time? Like here:

 

var compScaleProperty = comp.layer(1).property("Scale");

       

        compScaleProperty.setValueAtTime(5, [360, 360]);

        compScaleProperty.setValueAtTime(5.4,  [370, 370]);

        compScaleProperty.setValueAtTime(5.8,  [380, 380]);

        compScaleProperty.setValueAtTime(6.2,  [400, 400]);

        compScaleProperty.setValueAtTime(6.6,  [420, 420]);

        compScaleProperty.setValueAtTime(7,  [440, 440]);

 

I'd be very grateful for any help


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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