I try to make a grasshopper player which will move the height of object
there is a get number first , where it gives a number of height
then is the 1 question in Get String “does it have already?” there are two possible answers yes/no
( Yes = “True”
No = “False” )
then based on the answer of Q1
(if the q1 answer is yes) there is the Get String 2 question “is it in the height?”
(if q1 answer is no) Get String 3 question is “do you want?”
if q2 answer is “yes” then is the result is -.25
if q2 answer is “no” then +.25
if q3 answer is “yes” then - .25
if q3 answer is “no” then
(it will be better if it is changable with numberslider)
in rhino i wanted to be asked only the question ( q2 , q3 ) that is needed and not the other one (q2 for yes q3 for no, not all of them) i didn’t reach that point to check it
i try with anemone, with more sythetics ways , but i couldn’t find a solution.
the 1 question is if already there is teeth in the upper line or if it can move
in the (a) green there is no “tooth” and we want to fill it
in the (b) orange there is a “tooth” and and there is already there
in the (c) blue there no “tooth” but we dont want it to reach the top
and in the (d) red its moveable so we will add the extra
(its not pattern i should had draw them more randomly the last )
Perhaps we should tackle this one question at a time:
You have multiple coloured rectangles, which I assume are multiple instances of objects whose height you want to change. As with buildings and a skyline. Am I correct?
small rectangles that have a surface on top of that.
the heights are written based on the distance of the surface and each rectangle.
i want to pick one and then will ask me the grasshopper player the height that is written, it will extrude the rectangle at all 4 options but if i saw a “tooth” i will answer yes (it has an obstacle), then it will ask the next question (q2) “is it in the height” (is it allways there?) if i press yes then is the orange example, and the height that is given will lose -0.25
if i see that there is a moveable obstacle then i will answer yes in the first question but no to the second because the height given will be less (red example)
if there is no “tooth” obstacle and i want to fill it then “yes” its the green
and last if i think that i dont want to fill it is the blue example
Slowly, my friend. Slowly. Maybe just answer my questions so I don’t get overwhelmed with information.
So the coloured rectangles represent boxes with height which we are viewing 2-dimensionally in elevation view (from the side). Then there is a stepped (toothed) polyline above these boxes which represent some sort of constraint height, yes?
Or perhaps I have it the wrong way around, and the coloured rectangles are existing heights to which the polyline above them is being attempted to be put in relation to?
I guess my question is here, in your picture, are you trying to manipulate the shape of toothed line, or the height of the coloured rectangles?
yes i draw it 2d for easier understanding
heights maybe differnt but it will given from Get Number component previously
(color are added for visual reason of what happend each time in the script)
the polyline lets called it section.
the grasshopper worked 8 times seperate ( means for each letter (a,b,c,d,e,f,g,h) rhino played the grasshopper and ask Q0:give me height Q1:Does already have and then Q2 or Q3 depend of answer of Q1)
we extrude the lines _ _ _ _ _ _ _ _ (all have the letters name down (a,b,c,d,e,f,g,h))
So I am assuming you have a Rhino file with a bunch of boxes. You then run the Grasshopper script via Grasshopper Player. The first thing the script asks you is to select one of the boxes. Then it asks the user for an arbitrary height that the user then enters. Am I correct so far?
So then on the basis of the height of the selected object and the user inputted height a comparison is made which is question 1: “does it have already”. What does this question mean? Does it mean “Is the height of the box and the inputted height exactly equal?” or “Is the height of the box within (less than) the inputted height” or “Does the height of the box exceed the given height value?” ?
the Q1 Get String “does it have already?” is about if the polyline on the section goes down or on this place there is a thing that can move close to this height. its solely based on what happen ot the upper surface
Wait, so the polyline already exists as an object in the Rhino file? I assumed it was the boxes (coloured rectangles) that existed and we are trying to establish the polyline.
I am a little confused. What do you mean by “goes down”? Do mean a comparison to the neighbouring height?
Perhaps it is best to take your diagram as help here. Q1 for “a” is NO because ?. Q1 for “b” is YES because it is lower than “a”. Q1 for for “c” is NO because it is higher than “b”. Q1 is YES for “d” because it is equal in to “c”? Is that correct?
in “a” there is no low height , so the Q1 is no (there is no low height)
in “b” there is a low height, so the Q1 is yes (its not about “a”)
in “c” there is no low height, but the Q1 is no (this because the user influenced by “b”)
in “d” there is a movable obstacle, there the Q1 is yes (this is because we know “the user” that it can be moved)
so in “a” Q1: No, because the answer was no… we will get asked only Get String 3 question is “do you want?” (in this part we select the Yes option)
so in “b” Q1: Yes, because the answer was yes… we will get asked only Get String 2 question “is it in the height?” (the answer is yes because as you can se there is a solid obstacle in the upper surface, the “goes down” that we explained previously)
so in “c” Q1: No, because the answer was no… we will get asked only Get String 3 question is “do you want?” (in this case because we are influenced by the previous “b” we will answer No option)
so in “d” Q1: Yes, because the answer was yes… we will get asked only Get String 2 question “is it in the height?” (the answer is no, because there there is no something solid to block us, and we wanted to add it)