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

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

Information

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.

Day 7| GhPython scripting in grasshopper: Task 1,2,3
Circle created in rhino from python scripting.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Finding area of the circle through python script.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Creating a line segment between the point constructed and the centre of the circle.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
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.

Day 7| GhPython scripting in grasshopper: Task 1,2,3
A rectangular curve assigned to GhPython.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Offset of the rectangle through the scripting done in GhPython.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Conditioning done in GhPython for the size of the room.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Creating an opening in the room by culling one geometry with the other geometry.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Opening created on the wall of the room.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Two rooms created based on the condition given in GhPython script.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
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.

Day 7| GhPython scripting in grasshopper: Task 1,2,3
A rectangular curve assigned to GhPython.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
GhPython scripting to generate patterns.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Pattern generated
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Pattern generated on further subdividing the curves.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Grid created on value of percentage and level put to similar ratio.
Day 7| GhPython scripting in grasshopper: Task 1,2,3
Listing of an individual unit.

Leave a Reply