Hello Dynos,
i already posted in months ago i can´t find it…
so i have a list i want to get pairs:
how does it work? shift indexes?
KR
Andreas
Hello Dynos,
i already posted in months ago i can´t find it…
so i have a list i want to get pairs:
KR
Andreas
here you can use a loop to create these pairs.
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
input_list = IN[0]
OUT = [[input_list[i], input_list[i+1]] for i in range(len(input_list)-1)]
Use List.Sublists