Merge pull request #5117 from RosettaCommons/joshmiller/lua-selection
[Foldit] New Lua Functionality
Release notes:
- Added Lua function dialog.SelectBands() to prompt the player to select bands, then returns a list of band indices
- Added Lua function dialog.SelectSegments() to prompt the player to select segments, then returns a list of segment indices
- Added Lua function structure.GetCuts() which returns a list of segment indices which have open cutpoints
- Added Lua function structure.GetHBonds() which returns a table of visible hydrogen bonds (Note that that the results of this function are dependent on the current view options). Each entry contains these fields:
--- res1: segment index 1
--- res2: segment index 2
--- atom1: atom index 1
--- atom2: atom index 2
--- bond_type: 0 for hydrogen, 1 for disulfide
--- width: length of bond, generally ranging from 0.25 (bad) to 0.75 (good)