Profile


Name
Compressor
ID
104138
Shared with
Public
Parent
None
Children
Created on
November 23, 2020 at 22:55 PM UTC
Updated on
November 23, 2020 at 22:55 PM UTC
Description

A little script to run on hand-folding puzzles. Originally by Steven Pletsch. https://fold.it/portal/recipe/46409 Converted to Lua by joshmiller

Best for


Code


-- GUI Compressor by Steven Pletsch -- from https://fold.it/portal/recipe/46409 -- original description: A little script to run on hand folding puzzles -- conversion by joshmiller function BandByStride (firstStride, firstIndex, secondStride, secondIndex) local segCnt = structure.GetCount () for ii = firstIndex, segCnt, firstStride do for jj = secondIndex, segCnt, secondStride do band.AddBetweenSegments (ii, jj) end end end function SetAllRecipeBandStrength(strength) local numBands = band.GetCount () for i = 1, numBands do if band.IsRecipeBand(i) then band.SetStrength(i, strength) end end end recentbest.Restore () BandByStride (11, 1, 21, 1) SetAllRecipeBandStrength(0.08) structure.WiggleAll (1) band.DeleteAll (true) behavior.SetClashImportance (0.01) structure.ShakeSidechainsAll (2) behavior.SetClashImportance (0.5) structure.WiggleAll (7) behavior.SetClashImportance (1) structure.WiggleAll (8) structure.ShakeSidechainsAll (1) structure.WiggleAll (7) behavior.SetClashImportance (0.04) structure.ShakeSidechainsAll (2) behavior.SetClashImportance (0.15) structure.WiggleAll (8) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (0.39) structure.WiggleAll (7) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (1) structure.WiggleAll (8) structure.ShakeSidechainsAll (1) structure.WiggleAll (7) recentbest.Restore () BandByStride (11, 1, 17, 1) SetAllRecipeBandStrength(0.08) structure.WiggleAll (1) band.DeleteAll (true) behavior.SetClashImportance (0.02) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (1) structure.WiggleAll (9) structure.ShakeSidechainsAll (1) structure.WiggleAll (8) structure.WiggleAll (10) behavior.SetClashImportance (0.17) structure.WiggleAll (3) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (1) structure.WiggleAll (10) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (0.28) structure.WiggleAll (1) behavior.SetClashImportance (1) structure.WiggleAll (8) recentbest.Restore () BandByStride (11, 1, 13, 1) SetAllRecipeBandStrength(0.08) structure.WiggleAll (1) band.DeleteAll (true) behavior.SetClashImportance (0.1) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (1) structure.WiggleAll (9) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (0.16) structure.WiggleAll (1) behavior.SetClashImportance (1) structure.WiggleAll (9) behavior.SetClashImportance (0.01) structure.ShakeSidechainsAll (1) behavior.SetClashImportance (0.14) structure.WiggleAll (1) behavior.SetClashImportance (1) structure.WiggleAll (9) structure.ShakeSidechainsAll (1) structure.WiggleAll (9) structure.ShakeSidechainsAll (1) structure.WiggleAll (10) structure.ShakeSidechainsAll (1) structure.WiggleAll (5) structure.WiggleAll (10) recentbest.Restore () band.DeleteAll (true)

Comments