Question
Deleting hidden sublayers in specific layer
Hi, I need help with a small issue. I tried several delete hidden layer scripts I found but none of them worked.
I wan to delete the hidden layers in Layer "Text" before I export the file.

I am using this to make changes to the layers beforehand:
if (bks.layers.getByName("Text")){
bks.layers.getByName("Text").locked = false;
var text = bks.layers.getByName("Text");
...
}