algorithmic modeling for Rhino
Hi,
with the latest version of Grasshopper(080065) there seem to be a bug with the vb/ c# components. i wrote some if conditions to sort curves into different lists. after changing the values in the conditions the component didn´t update. when using it with grasshopper 080052 it works.
Greetz
CurveList lsOutputA = new CurveList();
CurveList lsOutputB = new CurveList();
CurveList lsOutputC = new CurveList();
for(int i = 0;i < y.Count;i++){
if(y[i] <= 0.2){
lsOutputA.Add(x[i]);
}
else if(y[i] > 0.2 && y[i] <= 0.5){ // when changing these values nothing happens
lsOutputB.Add(x[i]);
}
else{
lsOutputC.Add(x[i]);
}
}
A = lsOutputA;
B = lsOutputB;
C = lsOutputC;
Tags:
I assume you haven't seen this post yet: http://www.grasshopper3d.com/forum/topics/vb-c-script-bug-fix
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by