Fandom

Foldit Wiki

Foldit Lua Function structure.IsMutable

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


structure.IsMutable Edit

Function: boolean structure.IsMutable(integer segmentIndex)
Description: Returns whether a segment is mutable.
V1 Function Name: New to V2

Remarks Edit

A segment may have its backbone locked and still be mutable.

Sample Edit

Function that returns table of mutable segments in puzzle

function getMutables()
  local mutables={}
  for i=1,structure.GetCount() do
    if structure.IsMutable(i) then
      mutables[#mutables+1]=i
    end
  end
  return mutables
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.