I’m pushing forward into the fog of Loops (please don’t laugh too much). I’m attempting a simple loop that trims a single tier list of curves by a consistent start and end parameter. Here is the code block below:
Any help is welcome.
def curves.trim(curves)
{
trims = {};
c = curves;
i = 0;
cnt = List.Count©;
return = [Imperative]
{
while (i<cnt)
{
trim=Curve.ParameterTrim(c[0],0.25,0.75);
curves=List.DropItems(c,1);
trims[i] = trim;
i = i + 1;
}
return = trims;
}
};