Error handling for custom values
Posted: June 8th, 2012, 12:11 pm
I have an animated mask path on layer 1 and I am trying to handle an "After Effects error" with the following expression in source text:
The error I keep getting is:
Code: Select all
try {
x = thisComp.layer(1).mask(1).maskPath.velocity;
}
catch (err) {
x = "error";
}
The try/catch statement doesn't seem to work in this case for some reason. Any ideas on how to handle this error?After Effects error: can't compute derivative to a non-spatial custom value ( 29 :: 57 )