Lua Features in Foldit

Started by Tlaloc

bertro Lv 1

A script PAUSE button would be welcome on the UI. Upon PAUSE, the running script would «pause» until the PAUSE (now RESUME) button is clicked again.

This would alloy, for instance, to regain some CPU capacity (<100%) for doing some other things on my PC without having to «cancel» a script on one of my running clients.

Rav3n_pl Lv 1

No read bands ends in wiki list?
table band.getEndpoints(int band_num)
should return table of 2 digits: start and end segment.

It would be useful for reading user bands.

laddiebuck Lv 1

I'd love to see methods to allow recombination from different structures, so that with that and random intervention, we could apply genetic programming / evolution right within Foldit. I don't mean evolution on the AA sequence but on the 3D structure, with the fitness function just being energy after a shake/wiggle.

Rav3n_pl Lv 1

At least 3 generic sctipts around. 2 on bandband one on fuze. Is that what you searching for?

Rav3n_pl Lv 1

global band SetStrength ?
Tried first argument as nil, 0, true, false but it wants only band number. ONE band number :(
We still have iterate all bands to set them one strength.

rws Lv 1

A function to delete segments or segment ranges, as exists via GUI in Design Mode.

And an Inputbox, as already requested.

Regards,
rws

firejuggler Lv 1

band.GetCount(), band.SetStrength (integer bandIndex, number strength) and a loop should do the try Rav3n_pl

Rav3n_pl Lv 1

I know that. But in GUI scripts this is ONE command that change ALL bands at once. No iterating.
In Quake type scripts we changing all bands at once and iterating taking long time (ie on 50 bands).

Rav3n_pl Lv 1

Ctrl+X in cookbook editor to cut all code
Ctrl+V in cookbook editor to paste code

I`m using external editor all the time: just make change, cut from cookbook, copy from external editor, paste to cookbook.