Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fold.it LUA functions for scripting
void print([arg1,...,argN])
boolean absolutebest.AreConditionsMet()
number absolutebest.GetEnergyScore()
number absolutebest.GetExplorationMultiplier()
number absolutebest.GetScore()
number absolutebest.GetSegmentEnergyScore(integer segmentIndex)
number absolutebest.GetSegmentEnergySubscore(integer segmentIndex, string scorePart)
void absolutebest.Restore()
integer band.Add(integer segmentOrigin, integer segmentXAxis, integer segmentYAxis, number rho, number theta, number phi, [integer atomIndexOrigin], [integer atomIndexXAxis], [integer atomIndexYAxis])
integer band.AddBetweenSegments(integer segmentIndex1, integer segmentIndex2, [integer atomIndex1], [integer atomIndex2], [integer symnr2])
integer band.AddToBandEndpoint(integer segmentIndex, integer bandIndex, [integer atomIndex])
void band.Delete(integer bandIndex)
void band.DeleteAll()
void band.Disable(integer bandIndex)
void band.DisableAll()
void band.Enable(integer bandIndex)
void band.EnableAll()
number band.GetCount()
number band.GetGoalLength(integer bandIndex)
number band.GetLength(integer bandIndex)
number band.GetStrength(integer bandIndex)
boolean band.IsEnabled(integer bandIndex)
void band.SetGoalLength(integer bandIndex, number length)
void band.SetStrength(integer bandIndex, number strength)
number behavior.GetBandStrengthFactor()
number behavior.GetBuriedSidechainShakeAccuracy()
number behavior.GetClashImportance()
number behavior.GetExposedSidechainShakeAccuracy()
boolean behavior.GetFiltersDisabled()
integer behavior.GetShakeAccuracy()
boolean behavior.GetSlowFiltersDisabled()
number behavior.GetWiggleAccuracy()
string behavior.GetWigglePower()
bool behavior.HighPowerAllowed()
void behavior.SetBandStrengthFactor(number factor)
void behavior.SetBuriedSidechainShakeAccuracy(number accuracy)
void behavior.SetClashImportance(number importance)
void behavior.SetExposedSidechainShakeAccuracy(number accuracy)
void behavior.SetFiltersDisabled(boolean setting)
void behavior.SetShakeAccuracy(integer accuracy)
void behavior.SetSlowFiltersDisabled(boolean setting)
void behavior.SetWiggleAccuracy(number accuracy)
void behavior.SetWigglePower(string power)
number contactmap.GetHeat(integer segmentIndex1, integer segmentIndex2)
bool contactmap.IsContact(integer segmentIndex1, integer segmentIndex2)
boolean creditbest.AreConditionsMet()
number creditbest.GetEnergyScore()
number creditbest.GetExplorationMultiplier()
number creditbest.GetScore()
number creditbest.GetSegmentEnergyScore(integer segmentIndex)
number creditbest.GetSegmentEnergySubscore(integer segmentIndex, string scorePart)
void creditbest.Restore()
boolean current.AreConditionsMet()
number current.GetEnergyScore()
number current.GetExplorationMultiplier()
number current.GetScore()
number current.GetSegmentEnergyScore(integer segmentIndex)
number current.GetSegmentEnergySubscore(integer segmentIndex, string scorePart)
table dialog.AddButton(string label, integer value)
table dialog.AddCheckbox(string label, boolean value)
table dialog.AddLabel(string label)
table dialog.AddSlider(string label, number value, number minimum, number maximum, number precision)
table dialog.AddTextbox(string label, string value)
table dialog.CreateDialog(string title)
integer dialog.Show(table dialogTable)
bool filter.AreAllEnabled()
bool filter.ConditionSatisfiedstring name void filter.Disable(string name)
void filter.DisableAll()
void filter.Enable(string name)
void filter.EnableAll()
number filter.GetBonusstring name number filter.GetBonusTotal()
table filter.GetDisabledNames()
table filter.GetEnabledNames()
table filter.GetNames()
bool filter.HasBonusstring name bool filter.IsEnabledstring name void freeze.Freeze(integer segmentIndex, boolean backbone, boolean sidechain)
void freeze.FreezeAll()
void freeze.FreezeSelected(boolean backbone, boolean sidechain)
integer,integer freeze.GetCount()
boolean,boolean freeze.IsFrozen(integer segmentIndex)
void freeze.Unfreeze(integer segmentIndex, boolean backbone, boolean sidechain)
void freeze.UnfreezeAll()
string puzzle.GetDescription()
integer puzzle.GetExpirationTime()
string puzzle.GetName()
string puzzle.GetPuzzleID()
table puzzle.GetPuzzleSubscoreNames()
string puzzle.GetStructureName()
void puzzle.StartOver()
boolean recentbest.AreConditionsMet()
number recentbest.GetEnergyScore()
number recentbest.GetExplorationMultiplier()
number recentbest.GetScore()
number recentbest.GetSegmentEnergyScore(integer segmentIndex)
number recentbest.GetSegmentEnergySubscore(integer segmentIndex, string scorePart)
void recentbest.Restore()
void recentbest.Save()
boolean recipe.CompareNumbers(number num1, number num2)
number recipe.GetRandomSeed()
number recipe.ReportStatus()
number recipe.SectionEnd()
void recipe.SectionStart(string sectionName)
integer rotamer.GetCount(integer segmentIndex)
void rotamer.SetRotamer(integer segmentIndex, integer position)
table save.GetSolutions()
void save.LoadSecondaryStructure()
void save.LoadSolution(solution)
bool save.LoadSolutionByName(string name)
void save.Quickload(integer slot)
void save.Quicksave(integer slot)
bool save.QuicksaveEmpty(integer slot)
void save.SaveSecondaryStructure()
void save.SaveSolution(string name)
integer scoreboard.GetGroupRank()
number scoreboard.GetGroupScore()
integer scoreboard.GetRank([scoretype])
number scoreboard.GetScore([scoretype])
scoretype scoreboard.GetScoreType()
void selection.Deselect(integer segmentIndex)
void selection.DeselectAll()
integer selection.GetCount()
boolean selection.IsSelected(integer segmentIndex)
void selection.Select(integer segmentIndex)
void selection.SelectAll()
void selection.SelectRange(integer segmentIndex1, integer segmentIndex2)
boolean structure.CanMutate(integer segmentIndex, string aminoAcid)
void structure.DeleteCut(integer segmentIndex)
boolean structure.DeleteResidue(integer segmentIndex)
string structure.GetAminoAcid(integer segmentIndex)
integer structure.GetAtomCount(int segmentIndex)
integer structure.GetCount()
number structure.GetDistance(integer segmentIndex1, integer segmentIndex2)
string structure.GetNote(integer segmentIndex)
string structure.GetSecondaryStructure(integer segmentIndex)
integer structure.GetSymCount()
void structure.IdealizeSelected()
void structure.InsertCut(integer segmentIndex)
boolean structure.InsertResidue(integer segmentIndex)
boolean structure.IsHydrophobic(integer segmentIndex)
boolean structure.IsLocked(integer segmentIndex)
boolean structure.IsMutable(integer segmentIndex)
void structure.LocalWiggleAll(integer iterations[, backbone, sidechains])
void structure.LocalWiggleSelected(integer iterations[, backbone, sidechains])
void structure.MutateSidechainsAll(integer iterations)
void structure.MutateSidechainsSelected(integer iterations)
void structure.RebuildSelected(integer iterations)
integer structure.RemixSelected(integer start_quicksave, integer num_results)
void structure.SetAminoAcid(integer segmentIndex, string aminoAcid)
void structure.SetAminoAcidSelected(string aminoAcid)
void structure.SetNote(integer segmentIndex, string note)
void structure.SetSecondaryStructure(integer segmentIndex, string secondaryStructure)
void structure.SetSecondaryStructureSelected(string secondaryStructure)
void structure.ShakeSidechainsAll(integer iterations)
void structure.ShakeSidechainsSelected(integer iterations)
void structure.TweakRotateinteger segmentIndex, number angle)
void structure.TweakShift(integer segmentIndex, boolean shiftDirection)
void structure.TweakStraighten(integer segmentIndex)
void structure.WiggleAll(integer iterations[, boolean backbone, boolean sidechains])
void structure.WiggleSelected(integer iterations[, boolean backbone, boolean sidechains])
void ui.AlignGuide([integer segmentIndex])
void ui.CenterViewport()
string ui.GetPlatform()
string ui.GetTrackName()
void undo.SetUndo(boolean enable)
integer user.GetGroupID()
string user.GetGroupName()
integer user.GetPlayerID()
string user.GetPlayerName()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment