ScriptSpot

Forum topic · General Scripting

script for deleting empty layers

By short_cirkuit · 2024-08-31

Description

Hi guys

I tried to use chat GPT for this simple script as im no progframmer - couldnt get it done.
Can someone know how to create a simple script like this?

Much appreciated - many thanks if someone could help out

Comments (1)

Hi,

SimonBourgeois · 2024-09-16

You can use this:


(
	for i = layerManager.count-1 to 1 by -1 do layerManager.deleteLayerByName (layerManager.getLayer i).name
)