Fandom

Foldit Wiki

Foldit Lua Function structure.SetNote

1,425pages on
this wiki
Add New Page
Comments0 Share


structure.SetNote Edit

Function: void structure.SetNote(integer segmentIndex, string note)
Description: Sets the note assigned to a segment.
V1 Function Name: New to V2



Remarks Edit

Sample Edit

Code that add remarks for glycyne and cysterine

for i=1,structure.GetCount() do
  local aaType=structure.GetAminoAcid(i)
  if  aaType=="g" then
    structure.SetNote(i, "Gly: very flexible")
  else
    if aaType=="c" then
      structure.SetNote(i, "Cys: like to be hidden inside, can ceate bonds to other Cys")
    end
  end
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.