Flatten - Graft - Simplify - Grasshopper Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to the your questions video we will answer your questions each week on Saturday so feel free to ask your questions on the meet the YouTube channel videos and I will check them out and answer them on Saturday so and this week question is the ok ml of bra bartolini and how a paramedic has conversation for your tutorials they are very useful my might I ask you a question what is for the flatten command that you used on the capital when you're explaining ok there are lots of commands when you right-click on the output do you know any tutorial that can explain me how to use them so you're new on grasshopper thanks so basically this video will be answering your question about what are the outputs or the icons you see on when you right-click on the outputs of the reverse flatten graph simplify we parameterize icon so I will explain them just in a simple example so first of all let's talk about the reverse tool you can see that even if I put as any tool if I put any tool on the grasshopper canvas you can see that it and I right click on the output you will see that the reverse flatten graphed simplify and require motorized tool you can also sometimes see that you if you right click on the input we have the expression so I will also explain what expression is so the first thing is reverse what does the reverse mean in the outputs or in the inputs so what can we do here is let me just show you a very very simple example so I'm going to put a serie of points here and let me make them okay I have a set of points and if I connect the panel to these points you will see that they have numbers and that's the index of those points 0 1 2 3 & 4 so if I go to the a display section and connects a point list to these points and bake these numbers you can see that the first point is zero and goes to one two three and four so basically what reverse does is if you right-click an reverse the points and let me just bake the numbers you can see that the data is reversed so that is 0 1 2 3 4 and we can use this technique and the reverse to very very easily in many many examples so there are infinite examples you can say and explain about the reverse to but this was a simple one and that is how the curve of these points will define it so if I just connect these points by in by an interpolates tool and bake this curve okay and then reverse these points and again bake is curved and let's just get an analyze direction from these curves you can see that the direction of these curves are reversed so the curve is connected from these set of points and when we reverse it we have it in the reverse direction so if you want to use the reverse tool in grasshopper you can also double click and search for our es ok it's a Persian one reverse and you can see the reverse list tool and reverse list too and you can also use this to make a reversion of your data so you can see that let me just put another panel here and connect the reverse here you can see that this point goes to the end and this point will come to the top so basically the reverse tool is exactly has the right click the reverse of the inputs or the outputs and you can use it in many many examples I'll try to explain that in our tutorials but not not enough for now let's go to the next one and that's the flatten tool okay what is flatten okay so explaining about the flattened and the graphed tool I guess that first of all I have to talk about groups in a little little example a simple example so you can understand what happens so assume that we have a simple box here okay and let me just draw this and let's just make some copy of this copy and maybe okay four of them so let's just import those into grasshopper and work on them so you can understand what a groove means and why we need flatten why we need to graft because it's it's just a little bit complicated you can't understand it in a simple example like this but I'm just trying to scratch the surface so I'm going to explain about flatten graphed in many many many of my video tutorials later but let's just check this out so assume we have four boxes and those will be indexed in a group that's the group zero so they are all in a group and the group is something like this bracket zero and the zero is this one and the one is this one and two is this and three goes for this so this is indexed in grasshopper and grasshopper knows this box is zero and knows this box for a one and A two and A three so let's assume that we just deconstruct or explode these boxes so I'm going to I'm going to go to the surface tool and deconstruct Europe so I'm going to go to the construct P Rev and deconstruct this P rep and what will happen is each of these boxes will be a group because and one of these boxes will have as you can see here six phases so this will be six phases six phases for this one and what will happen here is that grasshopper managed manages data into groups so you can see that we have the first box we have the second box the third and the last one and each box has six phases okay and grasshopper also uses a zero before the number of the group because it wants to say that you have just done something okay so basically the the first one okay let me just show you if I just upset those edges maybe this can help you so that's 0 0 0 1 and 0 2 and when I just upset those curves or the edges you can see that it just goes to the 0 0 0 0 0 1 0 0 2 and that is because grasshopper handles another way of data by adding a 0 at the group stage and it means that this was later on on our way so if you right click on the outputs and just use the simplify tool so I'm just going to explain simplify now the simplify will just simplify the groups and turn off the zeroes so let's just check this out okay we have an offset here and goes to 0 0 0 0 0 1 and I'm going to right click and simplify so you can see that the zeroes of those groups just go back and that will be a simplified kind of groove okay so what is a flattened engraft we can understand here so perhaps let me turn this off we have three groups okay we have four groups and let me just simplify this so you see that the zeroes are gone we have four groups in six phases okay so this will be the zero and this will be one two three four and five so we have zero two five numbers here and if I go for the list item I've explained that in some of my tutorials and pick just one face so maybe the face number three I don't know which one is that okay we can check it maybe the bottom of this surface zero one two three the four is the bottom and it goes to five so if I just take those and connect a curve to that to that to those surfaces you can see that I'm extracting the curves of these bottom of those boxes okay so now I want to connect those bottoms together and make a surface so I'm going to use loft so I'm going to use loft here but when I connect the curse to the love nothing happens and that is when we use flatten maybe sometimes so if you check this out you can see that we have four rectangles here but they are in four groups so this is the first group and it has only one data and that is the first rectangle what we see here and the second and the third and the fourth and when you just connect this to the loft do you mean that I want to loft four times this is the times you want to do that so if you connect it to a joint you want you want to say to the computer that I want to join four times one by one okay so that doesn't give an out but because you're saying I want to join I want to floss four times and one section one section so that will not give you anything instead if you have two or three maybe that will be two sections loft together three sections loft it together so what we will do here is to we we can just break those groups flatten we don't need these groups we don't need this group in in the bracket zero groups oh and this is the zero one and then we go to the bracket one and this is again the zero and this will go to the bracket two and this is only a one curve so it's zero and so on so if we say loft what happens it operates loft in the groups four times lofting with one section that doesn't mean anything but if we flatten the groups what happens is that all the all the curves go in one group and that will be the bracket zero group and this will be 0 this will be 1 2 & 3 and that will make sense ok so I'm going to right click on this and go for the flatten you can see that the answer is okay because now we have for polyline curves in just one group let me show you in the panel section you can see that it's all in the first group it makes sense because you want to connect those four but when you don't use flatten each of those curves are in one groups and they will not give any answers so you can also use the flatten here flatten tree okay and give the output to this and the flatten tree has has an input you can explain what you want the output to be so this is for advanced one advanced users maybe you want to just take all those groups and turn it and turn them into the bracket six or the six paths and then you add them to the sixth group on you're making or grasshopper tutorial only grasshopper algorithm so the next one goes to let me just show you simplify to if I just turn this simplify off you can see that we have is zero here you can also use the simplified tree tool and just get rid of those zeros and you can see that the simplifying is just exactly when you right-click and use the simplify tool and the next one is about the graft so what do we need let me explain how we use graphs okay and check this out now let's assume that we have okay two set of boxes here and let's just make a copy of these okay I want to connect these four rectangles together and four of these rectangles together how can I do this assume that we have four layers of data okay we have four layers of data we are working we are exploding we are extracting them and we have four set of curves so this is the first care of the second curve and the third and the last one and we want to connect each of those data in those set of curves so I'm going to use the curve tool okay and let's assume that we have the first group here and let's assume that we have the second group here this is the third group this is the last so what we have here is and these are all in the first group these are all in the group zero and they are numbered 0 1 0 1 0 1 0 1 so if I just put them into one group okay let's check this out put a curve here and use the shift key to put everyone here you can see that they would go along each other because if I just use loft here okay you can see that it goes here and up there that is because it's 0 & 1 then we just put him into one group so it will be 2 & 3 & 4 & 5 & 6 & 7 so how can we just connect each of these set of 4 sections together we can use the graph tool I'm going to graft each one of these groups and here we are we can just change these sections and have maybe a new section okay what will happen here is that you can see we will have two groups if I just right click and use the simplified will have the zeros gone and we have two set of groups and they are in four indexed numbers so this will be the 0 and that will be 0 1 2 & 3 and this will be the 1 and the 0 1 2 3 so what happened why did this happen because of the graft when we graphed each of these data so let's check this out I'm not going to use the craft on this one you see that they the curves were we're in the one group and indexed zero and one and now I'm going to use graphs and see what happens each one will go to the groups so let's show you show this what happens now okay we will have everything in something like this and let's say these are our geometry and these are 0 1 2 3 & 4 and when we use the graph tool we will have something like this each one will go and let's just show these each one will go into a group and this will be the first group and this will be the second group and this will be the third group and so on and this will be just zero because it's just one this is zero two and so on so this will means graphed each of the data as will go into one group so when we just group when we just right click and use the graph tool this one will be zero and this one will be one and for the next layer this one will be zero and when we just put them into a one curve tool all the zeros will go into one group and all the ones will go to each group but this is a technique you can also always use layers and graphs them to have them organized into four groups or three groups or two groups so this is about the graph tool and the last one that we just show you here okay maybe have a curve here and we want to extrude that and we want to go to the Z direction and we have a number slider here we have a number here we want to give this to the extrusion but maybe we want to give say that and this number goes to other inputs okay so maybe we want to do this three times 55 so it's we can go to the mathematics and multiply that with three okay then give this to here or we can just right click on the input and use the expression okay if I right click and use the expression we say three star X you have to use the expression and it means that multiply the input by three you can do whatever you want with the expression tool but let me show you you okay three three times X or we can say we want the sine X we want the sine of this happening and go to the output or we want to just have an complicated expression X powered by three okay that's just make this plus it's powered by two plus x okay so you're you're simply using functions to change the inputs by using the X function X expression so this is the your questions video about the okay reverse flatten graphed simplifying requirements rise the report rise one is the last one and what it means is let me show you okay I have explained about the requirements rise to in the evaluate surface video tutorial but I will also explain it here if you didn't watch the evaluate surface video tutorial I I think that it will really help you to understand more about the requirements rice but about the curves and the surfaces in a grasshopper if you have a surface and we have a curve here okay those two set of geometries I mean curves and surfaces have domains and domains too they have domains and domains too so basically domain two we go for a surface and a simple domain we'll go for a curve so you can see that the curve has a domain from 0 to 378 and the surface is two domains that's domain 2 because it has a you domain and it has a video mate okay what requirement rise does is it just simplifies the domain to 0 and 1 okay so you will be 0 to 1 we will be 0 to 1 and the curve will be 0 to 1 and let's just right click the parmitt rise and we permit rise you can see the domain will be 0 to 1 it will be really useful for the evaluation tools evaluate curve we can get a simple 0 to 1/2 and extract the curve or the evaluate surface and give it an MD slider because it's a multi-dimensional slider is basically from 0 0 to 1 to 1 and you can just have all the surface covered by this simple MD slider to or UV point there's a UV point I encourage you to just watch the evaluate surface tutorial to understand more about the domain to of a surface so that will be the repairman's rights input of a curve or a surface which you can use okay thank you for watching this video if you have any questions feel free to ask them and I'll try to answer them each Saturday in the our magic house channel and thank you [Applause] [Music]
Info
Channel: Rhino Grasshopper
Views: 48,154
Rating: 4.9627433 out of 5
Keywords: grasshooper tutorial, grasshopper3d, grasshopper 3d, parametric design, parametric architecture
Id: -JRWoTzI9Co
Channel Id: undefined
Length: 24min 26sec (1466 seconds)
Published: Fri Jul 06 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.