We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
Copy link to clipboard
I have a list of layers .
Its a bit messy... but for the sake of "lets make it work", how can I detect if item is Deleted so I don't try to perform actions on it without wrapping it all in a try/else... In debug its marked as [error] "Object is invalid"
What kind of data does the array contain and how do you use it to access the layers? How are layers removed while the script is running?
If you can control the removal of layers, then it would be logical to synchronously remove them from the array.