Delete last band.

Started by smilingone

brow42 Lv 1

smilingone, do you mean a key that deletes the bands in reverse order?

Perhaps unrelated, but I've noticed that deleting the last band in a script is very slow, perhaps because of a linear search from the beginning, or a redraw always occurs after the band is deleted. It's so bad that I just let them accumulate and delete all of them every 20-30 or so.

Timo van der Laan Lv 1

Here is a simple V2 script that does the job: band.Delete(band.GetCount())
If you want to delete all bands from band nr X do:
repeat band.Delete(X) until false