-
Detect if layer was deleted via scripting
Is there any way to detect if a layer was deleted by the user and then execute some code?
If I delete a layer stored as a variable and then call the variable it tells me that the object is invalid. Comparing it to a null doesn’t return true or false as it’s not really an object (?).
Not sure which way to go to react to a user deleting a certain layer, created by and crucial to my script.