Fandom

Foldit Wiki

Foldit Lua Function band.AddToBandEndpoint

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

band.AddToBandEndpoint Edit

Function
integer band.AddToBandEndpoint(integer segmentIndex, integer bandIndex, [integer atomIndex])
Description
Add a band to the endpoint of an existing band. Returns band number.
V1 Function Name
New to V2
More Information
Details

Remarks Edit

This function allows you to create a band that terminates at the same endpoint as an existing band. If you use band.Add() to create a band to empty space, you can use this to create other bands that end at the same point in empty space.

Example Edit

This example adds a band to empty space at segment #2 of the protein. It then uses the band.AddToBandEndpoint() function to add a second band from segment #10 of the protein to the same endpoint in space.

local band1=band.Add(2,1,3,20,0,0)
band.AddToBandEndpoint(10,band1)

See Also Edit

band.Add band.AddBetweenSegments

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.