1.2.05. Shift


Date published: August 9, 2022


Sometimes you need to perform an action on each item in a list which depends on neighbouring items. For example, if you want to connect each point in a list of points with the next one, you need to somehow get to that second point. There are several ways available of doing this, but Shift is an exceptionally useful one. Shift will move all the values in a list of indices to the left or right.


1.Create a circle with radius 5
2.Move it acc. to 5 times the z-unit vector
3.Divide both circles to an equal amount, controlled by a slider
4.Shift the bottom point list, making sure values are wrapped
5.Connect the points from both lists with a line

This exercise is using Grasshopper version 1.0.0007

References: Grasshopper Tutorials (2015), wiki.mcneel.com/labs/explicithistory/examples, Accessed 12/07/2022.




course files


683.35 KB | 615 downloads