-
Forcing text inside Source Text is acting weird
I created a text layer that can output a warning message instead of the actual input when it exceeds the maximum length set by the slider control.
It does work most of the time but sometimes it flickers or sometimes it doesn’t work at all. Seems like it’s struggling to choose what from the if statement.
Can anyone have an idea how can I fix it? Thanks!maxW = thisComp.layer("ExpCTRL").effect("Max Text Length (px)")("Slider");
txtW = this.sourceRectAtTime().width;if(txtW <= maxW){
this.text.sourceText;
}else{
"You have exceeded \rthe maximum length allowed.";
}