Hi, I’m quite new to grasshopper and writing a code for this parametric brick wall.
I want to add another parameter that controls the rotation of the bricks so that the upper part of the facade is more “closed” and the lower part is more “open”.
Currently the rotation angle is related to the curve: the closest the brick to the curve, the more it rotates. I want to mantain this parameter but also add this “gradient” effect.
Basically I want the rotation to be related both the curve and to this gradient. So there will be an area at the upper part that will be the most open one (close to the curve + up) and on the other extreme the most closed one (close to the curve + down)
Any help is appreciated
brick wall (1)_Re (1).gh (21.9 KB)
brick wall.3dm (106.9 KB)
brick wall (1)_Re (1).gh (24.4 KB)
Given your rotating bricks centroids, you consider its Z coordinate, find the min-max values (Bounds) , remap those values to a 0-1 domain and use this final value as multiplier for your angles.
(here the graph mapper actually remap again the values from 0-1 to 1-0 …)
1 Like
thank you so much!