Delete last band.

Case number:845813-995088
Topic:Game: Tools
Opened by:smilingone
Opened on:Saturday, May 4, 2013 - 18:03
Last modified:Monday, May 6, 2013 - 22:41

I'd like the option to simply delete the last band made.

(Sat, 05/04/2013 - 18:03  |  2 comments)

brow42's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 09/19/2011
Groups: None

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.

Joined: 09/21/2011
Groups: Void Crushers

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


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons