Set structure is a command used in GUI recipes in Foldit.
Set structure uses two ingredients: structure and segments.
The segments ingredient can be specified in three ways:
- By Stride
- User Pick
Using "all" for the segments ingredient causes all segments in the puzzle to be changed to the indicated structure type.
In contrast, using "by stride" for the segments ingredient causes only specific segments to be changed. See by stride for more on this option.
The "user pick" option for the segments ingredient means the user is prompted to pick segments by clicking on them when the recipe reaches the command. A user pick is similar to selecting segments in the selection interface, but there are some differences. See user pick for more on this option.
See Segments Ingredient for a complete explanation of specifying segments.
Set structure is similar to changing segments manually in the original or selection interfaces. The equivalent Lua commands are structure.SetSecondaryStructure or structure.SetSecondaryStructureSelected.