How to point to a deep property that may or may not exist without using try or multiple Ifs?
  • Okay, so I've written a little custom script for something that uses the Start Index on a text animator and I'm identifying it by assigning this:
    layer("Text")("ADBE Text Animators")("ADBE Text Animator")("ADBE Text Selectors")("ADBE Text Selector")("ADBE Text Index Start");

    Now, obviously this is fine and dandy if it's it's there, but I want it to catch errors if not.  try/catch is simple enough, but if I want to avoid custom error-catching do I just have to check if each parent is null before evaluating for the next child group?  Because just trying it all at once will throw "undefined is not an object" etc .
This discussion has been closed.
All Discussions