Apparently it's unable to be handled. According to the JavaScript Tools Guide:
Messaging error codes
Negative values indicate unrecoverable errors...
-29 Uncaught exception
57 Cannot resolve reference
So, I came up with this ugly solution:
Code: Select all
maskPath = thisComp.layer(1).mask(1).maskPath;
try {
if (maskPath.numKeys > 0){
throw ("err1");
} else {
x = maskPath.velocity;
}
}
catch (err) {
x = "error";
}
I would much rather have a way to read through expressions:
Code: Select all
maskPath.propertyValueType.CUSTOM_VALUE == true
I guess I'll have to do it through scripting for now. So, let me know if anybody has a better solution.