source text set value at time
hey,
i begginer @ ae scripting. i'd change text color on time. have done f.e. scale property. i'd same color. until ive changed 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 change @ given time? 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 grateful
i think pretty same way:
var compsourcetext = comp.layer(1).property("source text");
var comptextvalue = compsourcetext.value;
comptextvalue.fillcolor = [1, 0, 0];
compsourcetext.setvalueattime(0,comptextvalue);
comptextvalue.fillcolor = [0, 1, 0];
compsourcetext.setvalueattime(1,comptextvalue);
etc.
dan
More discussions in After Effects Scripting
adobe
Comments
Post a Comment