# Grasshopper script

**URL:** <https://discourse.mcneel.com/t/grasshopper-script/217386>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [March 26, 2026, 2:56pm UTC](https://discourse.mcneel.com/t/grasshopper-script/217386 "2026-03-26T14:56:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariana\_mokri](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ariana_mokri/32/737556_2.png) [@ariana\_mokri](https://discourse.mcneel.com/u/ariana_mokri)\
**Post date:** [March 26, 2026, 2:56pm UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/1 "2026-03-26T14:56:32Z")

</div>

Hi. I was wondering if it is possible to make a script in grasshopper that makes a srf with a given pattern based on lines/curves drawn in rhino? I’ve only managed to make it with louvres, but not with a whole srf (i’m working on making a facade)

I’ll put some pictures of what i am trying to explain. If someone could help me with this I be greatful.

 ![Skjermbilde 2026-03-26 155316](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/8/2/58273d3f5e6b2d97a80cc23245b25062290496e7.jpeg)

like this without the spacing between the srf’s

 ![Skjermbilde 2026-03-26 155330](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/6/5/c654f294f2ac2127dff2aa34ea7d12efb754a642.jpeg)

(the pictures are borrowed from studio rap instagram)

---

<div class="post-metadata">

**Author:** ![Quan\_Li](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quan_li/32/679256_2.png) [@Quan\_Li](https://discourse.mcneel.com/u/Quan_Li)\
**Post date:** [March 27, 2026, 10:45am UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/2 "2026-03-27T10:45:23Z")

</div>

yes. it is easy . but still you need to know how to do the basic

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [April 9, 2026, 11:28pm UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/3 "2026-04-09T23:28:18Z")

</div>

The curves are done with magnetic fields components in native grasshopper or using certain plug ins:

Check FlowL

> **[flowL](https://www.food4rhino.com/en/app/flowl)**
>
> flowL is a plug-in to visualize a vector field, generated trough positive and negative point charges. The path lines are calculated with the "

Or these posts

> **[Vector Fields Exercise](https://www.designcoding.net/vector-fields-exercise/)**
>
> This post is about a first-year Design Computing in-class exercise, a vector fields exercise and the usage of relevant Grasshopper components.

> **[Vector Field Tools in Grasshopper - Basic + and - Point Charges - Example 7.1...](https://generative-landscapes.com/vector-field-tools-in-grasshopper-basic-and-point-charges-example-7-1/)**
>
> An interesting set of tools that was introduced to Grasshopper a few versions back are the “Field” tools. It only takes a bit of practice to get these up and working. What is more difficult is learning to control the results of the fields, and...

* * *

* * *

For the 3D part I am not quite sure if they are using meshes or nurbs, but in any case the logic has to do with using the curves as attractors to modify the geometry.

Because of the complexity of the geometry I would think it has to do with meshes/quadmeshes/subd

Specially given this detail here clearly pointing to a resolution topology:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/3/9/b39e0c0f7e63f4056569e8b788fbf4a1aab23dff.jpeg)

On how to move geometry with curves you can see:

> **[Using Curve Attractors and Graph Mapper to Modify Terrain - Generative...](https://generative-landscapes.com/using-curve-attractors-and-graph-mapper-to-modify-terrain/)**
>
> In this example, we will follow up on the logic of modifying terrain with point attractors and now modify the terrain along one or more linear pieces of curve geometry. We will be using much of the same logic, so if you are struggling with certain...

Maybe they are also applying certain sinusoidal “groove” to the points before reconstructing the mesh.

Sine equations:

[https://www.grasshopper3d.com/forum/topics/how-to-generate-a-sine-cosine-function-with-a-gradual-distance](https://www.grasshopper3d.com/forum/topics/how-to-generate-a-sine-cosine-function-with-a-gradual-distance)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/c/3/bc36f3e02d5018b54551f3f9e2891cd730540e8c.jpeg)

Applying grooves:

[https://www.grasshopper3d.com/forum/topics/how-to-create-smooth-and-stable-waves-using-magfields](https://www.grasshopper3d.com/forum/topics/how-to-create-smooth-and-stable-waves-using-magfields)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/f/9/6f93d1f89862967a4a43bc334ace497fddced586.jpeg)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [April 10, 2026, 4:02am UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/4 "2026-04-10T04:02:40Z")

</div>

I think its something like this

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/1/0/e102cac57cf56f49a2f798624d08bd219dfd0a94.jpeg)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/3/0/e3046cb77cfc70f00f09f23fbdbe610aab9f7806.jpeg)

---

<div class="post-metadata">

**Author:** ![ariana\_mokri](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ariana_mokri/32/737556_2.png) [@ariana\_mokri](https://discourse.mcneel.com/u/ariana_mokri)\
**Post date:** [April 11, 2026, 9:25am UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/5 "2026-04-11T09:25:10Z")

</div>

> [@ShynnSup](#):
>
> aybe they are also applying certain sinusoidal “groove” to the points b

Thank you so much! We don’t learn much grasshopper in school, so this was very helpful

---

<div class="post-metadata">

**Author:** ![ariana\_mokri](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ariana_mokri/32/737556_2.png) [@ariana\_mokri](https://discourse.mcneel.com/u/ariana_mokri)\
**Post date:** [April 11, 2026, 11:30am UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/6 "2026-04-11T11:30:40Z")

</div>

How did you make it into a srf/mesh with depth?

---

<div class="post-metadata">

**Author:** ![mohovilka](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mohovilka/32/770674_2.png) [@mohovilka](https://discourse.mcneel.com/u/mohovilka)\
**Post date:** [July 28, 2026, 6:42am UTC](https://discourse.mcneel.com/t/grasshopper-script/217386/7 "2026-07-28T06:42:28Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/2/4/92468523f126a950d6fa67ecd8024af0e3f1a794.jpeg)

[Vector Mesh.gh](https://discourse.mcneel.com/uploads/short-url/p758zz9B2fUp7mmObaaIAvdkGFy.gh) (21.9 KB)
