-
Syntax Change;
Hey All, the newest version of AE was just released and the expression engine has been switched from ExtendScript to Javascript. Problem is that the syntax has been changed just a bit, and some of my code is now broken and I can’t figure out where. All that the error report returns is “Error at line 1”.
I’ve tracked isolating chunks of my expressions down to a single function, but I am not sure where the syntax change is now wrong for the new engine.
This function is never being called in my isolation, yet is breaking the expression, meaning I think the program is reading it incorrect. If I comment around the section, it is fine. If I switch the engine back to Legacy ExtendScript (under the project settings), all of this runs fine.
Does anyone have any ideas?
function rebelFind(i){
try{
T = clamp(effect("Rebel Rebel")(i).value, min=-1, max=99);
if(T == -1){return parent};
else return effect(String("Surrogate Idol " + T.toFixed(0)))(1);
}catch(err){return thisLayer;}
}Alex Printz
Mograph Designer