How to apply the transition to the fill color in the script? Call setValueAtTime? It does not work.

Hello world!

Can't stand not to code (setValueAtTime) following the transition from the fill color, but this feature is supported by After Effects CS5.5 UI. So please can you give a hint on how to implement the transition from the fill color in the script?

...

Layer1 = app.project.item var (1).layers.addText ("Example Text");

animator1 var is layer1. Text.Animators.addProperty ("ADBE Text Animator");

var selector1 is animator1. Selectors.addProperty ("ADBE Text Selector");

animator1 = animator1. Properties;

animator1. AddProperty ("ADBE Text Fill Color").setValueAtTime(0,[0xff,0xe0,0x0,1]);

animator1. FillColor.setValueAtTime(1,[0xFF,0x00,0xe0,1]);

animator1. FillColor.setValueAtTime(2,[0x00,0xe0,0xFF,1]);

animator1. FillColor.setValueAtTime(3,[0xFF,0xFF,0xFF,1]);

animator1. AddProperty ("ADBE Text Rotation X") .setValue (ratationX);

animator1. AddProperty ("ADBE Text Rotation Y") .setValue (rotationY);

animator1. AddProperty ("ADBE Text Rotation") .setValue (rotation);

animator1. AddProperty ("ADBE text scale 3D") .setValue ([100,300,100]);

animator1. AddProperty ("ADBE Text Position 3D") .setValueAtTime (0, [-500, -300, -300]);

animator1.position.setValueAtTime(5,[0,0,0]);

selector1. Start.SetValue (0);

selector1.end.SetValue (100);

selector1.offset.setValueAtTime (0, -100);

selector1.offset.setValueAtTime (3,100).

selector1. Advanced.Shape.SetValue (2);

selector1. Advanced.easeLow.SetValue (100);

...

Thanks in advance!

Your layers of color must be between 0 and 1, like this:

animator1. FillColor.setValueAtTime (1, [1.0,.878, 1]);

animator1. FillColor.setValueAtTime (2, [0,.878, 1, 1]);

animator1. FillColor.setValueAtTime(3,[1,1,1,1]);

Dan

Tags: After Effects

Similar Questions

Maybe you are looking for