Grasshopper Tutorial (Gradient)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this small video tutorial I'll be talking about gradients and how we can use it to produce and show parametric geometries so in this example you can see that I have produced a surface and I want to show different colors based on the gradient from the height of the panels it's just multiple panels covering all the surface and changing the colors [Music] [Applause] [Music] so let's get started first of all you can produce a surface easily I can go to let me produce a rectangle here and rebuild it so it has more easel caps I have 30 to 30 yeah that's the surface okay we can use soft edit surface to make it a little bit interesting and change the surface okay we can control it by something like this okay this is the base surface you can choose or make any surface you like and let's import this into grasshopper the second step we need is to produce panels so the best way if you have a surface let's assume that we have a surface and we want to make those panels is to use two tools the first is to use a tool called easel trim and what it does is it trims the surface with the easel curves and it uses a domain to input so basically the second tool we combined with is a trimmers of the divide it's the divided domain - and the white domain - makes the surface domain that's the domain we have here divided by U and V number so combining this surface is our trim divide domain - which is basically the better the easiest way to make the surface trimmed by equally distributed domain panels you can use either trim divide domain - to make this so if I go and double click and search for ease oh you can see that is our trim is the tool you can find it it in surface utility and for the domain which I will be talking about is a trim later in a video for those who want to know exactly what is a trim is but for in for this example we use divide domain - to divide the surface into you and B so we divide domain to the surface into the domains the domain of the surface is divided by you count and we count so we can give it a number like 25 - 25 and you can see that the surface is divided into sections and the subset of the base surface so this is the fast and easiest way and you can produce the subsurface of a surface and now we want to color these sub surfaces based on their Heights because we want to make this for example green because it's higher and make this red because it's lower so what we say in our mind is that this is higher because the subset of the surface the subsurface has a point the Z of the point is more for this point rather than this point so I will use the Z of the coordinate Z coordinate of the point to define which one is higher and which one is lower so let's extract the centroid of the subsurface and let's go to the surface and choose area and extract the area and we have the centroid now we can just go to the vector and what we are doing is deconstructing the point we need the Z coordinate of the point that the construct point will just give you the XY and z coordinate in different outputs and that's great because you can have the Z coordinate of the points in a different output than the X component so what we need is the gradients tool which is actually the base and the main base of this tutorial so if I put it in the canvas you can see that it has three inputs you can right click on it and choose different presets and presets and we have a lower limit and upper limit and a parameter for color so what should I do is to change these inputs that first is the lower limit and it's zero and and what it means is that the color in the first place is zero so here we have a zero and then it goes to the upper limit so if I check the upper limit is 1 and it says that the blue is 1 so we have a zero and have one and it asks about what we want so if we give it let me just show you this and connect go to the display and choose a custom preview to color those panels or the surface okay and let's just preview off this and let me give this to the shader if I give 0.2 to the parameter you can see that the color is exactly here if I give it a zero we have the red it changed and goes to the blue so it's zero to one so what we need is to use this this Z component to produce the colors so let's think about it we need a lower limit and an upper limit of the Z we want to know the minimum and the maximum Z number for the points for the Z component for the coordinate of the points so we can do that by going to the math and going to this balance tool and if I connect the Z to the bounce it gets the numbers and says that it's from 14 to 60 so the lower limit and the upper limit should be just from 14 to 60 and then the parameter will be the numbers of the Z and we'll give that here so let's just extract those numbers because this is that this is the main output but we need numbers so we want the first and the last number of the domain so we need another step and we go to the domain we'll choose the construct domain so we'll extract the first and the last number of the main so I'm constructing this to the start 14 and to the end 60 and let's give this to the lower limit and upper limit of gradients and the parameter is exactly the Z because it's the height of the subsurface we need it and you can see that we finished the algorithm by giving it to the deconstruct domain and the lower limit and upper limit you can change the color by right-clicking and choosing a preset we can increase the sub surfaces by increasing the number of the subdomain by increasing the number of the device domain to which we used here and we can see that if I change the surface so let's just soft edit surface this and move this up you can see that the color will change let's wait till the sub surfaces are calculated and you can see that it's changing and we can change the number we can give it a zebra pattern something like this you can make it green to red and that will exactly answer our question because it's using the Z component of the points to pick up from the gradient bucket of colors and you can play with this you can use a point attractor to color a facade for example you can use a curve attractor you can use image to make colors I will be covering all of these point curve attractors image attractors using sound using are you know kids using whatever you want to produce colors we can produce extrusion we can produce rotating moving of whatever we want but you can easily use color to show for example distance exactly what we did here we use it for showing the height of a point you can use it too let's see if we use X for example we are saying that the x-coordinate of the point is important so it will color it from green to red from here from the left part to the right part so if I give it an X component and let's see you can see that it will change and if I give it a Y component it will go to the Y direction you can combine x y&z you can do whatever you want you can use a point attractor it's a little bit complicated than this one and that is easy but you can use color in your design to show what you mean it's the best way to show the person what you mean by close on your height or by more stress or in the structural engineering section you can show it needs it has a more stress or less stress and it's a great tool thank you for watching if you have any questions about grasshopper commands or you or there is a command you need to know and you don't know what it is just ask in the comments or put a comment under this video or in the website and I will record it as soon as possible thank you [Applause]
Info
Channel: Rhino Grasshopper
Views: 32,625
Rating: 4.9792747 out of 5
Keywords: grasshopper3d, grasshopper 3d, rhino3d, rhino 3d, parametric, parametric design, gradient
Id: kI4Jmd3-rtI
Channel Id: undefined
Length: 12min 49sec (769 seconds)
Published: Sat Dec 30 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.