Anton Shushar
Forum Replies Created
-
I modified Filip’s code a bit to support multiple properties. You just need to pass as many properties as you need into
revealPropertyfunction as argumentsHere’s small working example:
var curComp = app.project.activeItem;
var curLayer = curComp.selectedLayers[0];
revealProperty(curLayer.opacity, curLayer.scale);
function revealProperty(){
var originalExpressions = [], prop = arguments;
for(i=0; i<prop.length; i++){
originalExpressions.push(prop[i].expression);
prop[i].expression= "1/0";
}
app.executeCommand(app.findMenuCommandId("Reveal Expression Errors"));
$.sleep(1);
for(i=0; i<prop.length; i++){
prop[i].expression = originalExpressions[i];
}
} -
Ok, thank you so much! You saved me tons of time.
May you give me any of your contact? -
-
I would be interested in seeing how you solved your problem. Showing an example would be the best option.
-
Yeah, traking property works well, but I’d like it to be depended on scale property, that is percentage value so simple parent won’t work.
Do you know how I can make it increace/decrease appropriately with scale? -
I just realised that I was setting that expression into “Array”‘s Expresion Selector, not sourceText.
Thanks, it makes almost what I want. But there is one thing that bother me — when I add scale property besides color, kerning doesn’t change, I mean that those regex-filtered words are intersecting neighbour letters, instead of extending space. Is there a workaround? -
I tried to make exactly what you’ve said, but for some reasons no text generates in “Array”(it remains empty). However, if I make a copy of the original “Text” and apply the expresion, this error appears:
After Effects warning: Expression Disabled. Error at line 0 in property 'Amount' of layer 2 ('Array') in comp 'Comp 1'.
expression result must be of dimension 3, not 58
BTW, I double-checked that original text layer has name of “Text”. -
I didn’t really get this line:
I suggest forming an array of indices of to-be-colored chars
Coould you explain a bit clearly?
Btw, besides color I’m gonna animate the scale of those words so breaking up the text will lead to kerning issues. -
Thank you so much! I am also wondering whether you have issues with previewing it? It just proccess like 30 sec per frame. What can I do with such a delay?
-
Thank you master, it saved me tons of time! You are the only person who managed to think of the solution.
I have one more little question: how do I animate this color appearing? Range Selector doesn’t work.

