Hi David.
Two things.
First (too bad an error does not arise to clue you in), the color value for this type of parameter is
4 dimensions, not 3. RGB
and Alpha.
Second, the value of each dimension is from
0 to 1. (1=255).
So, your code really should be this (assuming you want R=147, etc.):
Code: Select all
//feel free to round these values; i asked AE for them
myComp.layer(10).Effects.addProperty("Tint");
myComp.layer(10).property("Effects").property(1).property("Map White To").setValue([0.57647061347961, 0.7294117808342, 0.82352942228317, 1]);
However,
Do this instead, because you want to be able to reference exactly the tint you want (in case there are multiple tints applied; this is generally a better way to structure this type of thing:
Code: Select all
newTint = myComp.layer(10).Effects.addProperty("Tint");//add filter, put that instance into a variable
newTint.property("Map White To").setValue([0.57647, 0.7294, 0.8235, 1]);//use that variable so we use the specific instance
Have at it!