it works like a charm as a standalone. however, i have already an expression in the sourcetext, it’s a checkbox for getting text from another composition, or overriding by writing manual. if i insert your expression into this, doesnt seem to work. any ideas? my expression looks like this
a= thisComp.name.split(“_”)[0];
nume = thisLayer.name + (” “) + a;
manual = text.sourceText;
automat = comp(“data”).layer(nume).text.sourceText ;
if (effect(“manual”)(“Checkbox”) == 1) {
manual
}else{
automat
}