Day 7| GhPython scripting in grasshopper: Task 1,2,3

SAVE

Posted on: July 23rd, 2020

Day 7| GhPython scripting in grasshopper: Task 1,2,3

Date: 01.07.2020

 

Task 1

Title: GhPython Scripting to create geometry in grasshopper.

Software used: Python, Grasshopper, Rhino6

Tools Used: GhPython Script, Curve, List item, Panel, Point, Construct Point

The session was to learn python scripting to create geometry in grasshopper. In this exercise, a circle and an arc was created.

Circle created in rhino from python scripting.

Finding area of the circle through python script.

Creating a line segment between the point constructed and the centre of the circle.

Arc generated through the centre of the circle and the constructed point.

Task 2

Title: Room generated through GhPython Scripting.

Software used: Python, Grasshopper, Rhino6

Tools Used: Curve, GhPython Script, Area, Panel, Offset curve, Explode, Loft, List item, Curve middle, Rectangle, Extrude, Cap holes, Solid difference

This exercise was to generate a room in grasshopper and control the size of it through GhPython script.

 

A rectangular curve assigned to GhPython.

Offset of the rectangle through the scripting done in GhPython.

Conditioning done in GhPython for the size of the room.

Creating an opening in the room by culling one geometry with the other geometry.

Opening created on the wall of the room.

Two rooms created based on the condition given in GhPython script.

Resizing of the room done by changing the values through a number slider in the grasshopper.

Task 3

Title: Generating Iceray Pattern in grasshopper though GhPython Scripting.

Software used: Python, Grasshopper, Rhino6

Tools Used: Curve, GhPython Script, List item

This exercise was to generate Iceray Pattern to build an understanding of the use of conditioning functions in GhPython scripting.

A rectangular curve assigned to GhPython.

GhPython scripting to generate patterns.

Pattern generated

Pattern generated on further subdividing the curves.

Grid created on value of percentage and level put to similar ratio.

Listing of an individual unit.

Read More:

Subscribe to our newsletter