Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions see if the selected layer is a null or not

  • see if the selected layer is a null or not

    Posted by Jacob Danell on April 29, 2014 at 12:09 am

    Hi! I’m trying to write a script where I need to have an if-statement about if the selected layer is a null-object or not.
    I have my normal “if (selectedLayer instanceof xxxxx)” code but idk how to make it know if it’s a null or not… When I do a quick alert with the selected layer I get FootageItem but I get that on both images and nulls. Are there any way to know if it is a null-object or not?

    Dan Ebberts replied 12 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 29, 2014 at 4:40 am

    This should work:

    if (selectedLayer.nullLayer){
    // do stuff
    }

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy