algorithmic modeling for Rhino
Hey again,
I got a question considering the values of a list I have
This list has values going from 0.1 to 2.0
What I want to do is to set all the values that are larger than 0.8 to be 0.8
So, any value that would overcome the limit of 0.8 would be translated into 0.8.
I tried the equalise component, but all i get is just a statement of true and false for every value.
Here is a prt scrn of what I tried.
Thank you in advance.
Tags:
Thank you for the quick reply, Raul.
I first did a syntax error, but now it is working perfect.
Can you tell me how you called the Number persistent data?
Is it linked to the number component?
Thank you again. :)
The Num component is under Params/Primitive/Number. With right click you can manage the number collection
Try "Min" component (Maths tab)
Thank you all for your replies.
It has been more than useful to me.
One last thing, Raul, can you please tell me where I can study
more about the "language" you used in the first case you suggested (If x>0.8,0.8,x) ?
I wonder how I can do by using this.
Thank you again, fellows.
Hi Marios,
ill try to tell you something about the "Evaluate" component (fx). The component is located under Maths/Script.
When you zoom on the component you can add/delete input members. When you double click the component the expression designer will pop up. In the right upper corner you can see the symbol f:N-->R. Double click on this symbol and you will get the syntax samples with Name, Signature and Description.
You have 2 possibilities to enter your function.
1) Inside the component under Expression.
2) by using the "Panel" component.
I prefer 2 because i can see the function immediately.
As you can see, the performance of "Evaluate" is much better then "Min" (3ms27ms).
I hope this helps.
Raul.
That was absolutely useful. :)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by