Week 9 HW

Here is a curve trace of the J train line, superimposed with 100 equidistant points. Each point was moved in the z-direction by a random number to simulate noise. Going forward in the class I am going to be doing field recording, or some other audio analysis to obtain noise data, and utilize it in a design relating to noise in the anthropocene.

Screen Shot 2015-03-31 at 12.08.57 PM

 

Here is the Python script:

import rhinoscriptsyntax as rs
import random

pntList = []

arrObjects = rs.GetObjects(“choose objects”, rs.filter.point, True, True)

for object in arrObjects:
if rs.IsPoint(object):
pntLoc = rs.PointCoordinates(object)
print pntLoc
z = random.uniform(0.0,4.0)
scale = (0, 0, z)
rs.MoveObject(object, scale)
newPnt = rs.PointCoordinates(object)
pntList.append(newPnt)

poly = rs.AddPolyline(pntList)