++++ culagovski.net » python

Archive for the 'python' Category

Rhino + Grasshopper + Python

Monday, October 6th, 2008

Have been trying some things using the latest Grasshopper Beta with scripting support, using Python. It’s an interesting middle ground between the simplicity and straightforwardness of Grasshopper’s interface and the flexibility and power of Python.
The example is a simple parametric surface paneller, that recursively divides a surface according to its Gaussian curvature. The more curved […]

Maya2008 + Pymel

Monday, July 7th, 2008

Pymel fixes Maya’s python API.
A first simple experiment, populating a NURBS surface using its UV coordinates.

from __future__ import division

usub = 7
vsub = 20
usize = 8
vsize = 1
depth = 0.5

surfs = selectedNodes()

def pt(surf,u,v):
return pointOnSurface( surf, u=usize*u/usub, v=vsize*v/vsub)

for surf in surfs:
for u in range(usub):
for v in range(vsub):
pt1 = pt(surf,u,v)
pt2 = pt(surf,u+1,v)
pt3 = pt(surf,u+1,v+1)
pt4 = pt(surf,u,v+1)
c=curve(p=[pt1,pt2,pt3,pt4,pt1])
extrude (c, et […]

Thesis!

Friday, October 19th, 2007

Finished writing my thesis (!). PDF here. In spanish.
It’s basically about:

Definition of “weak heritage” as the elements of a city that make up its character but aren’t part of its “strong” heritage such as churches, avenues, etc. The weak heritage of a city includes individual houses, public spaces, small shops and other anonymous elements that […]

GeoTagCloud

Sunday, August 26th, 2007

A geolocated tag-cloud for all the flickr photographs that have been placed within Valparaiso, Chile. The size of the text relates to the frequency of use of each tag in each position (not the overall frequency). This is part of my MArch thesis, and makes use of James Clarke’s flicker.py to retrieve the data.

If you […]