Monday, May 25, 2009

02A_COSMOS_CURVES


import maya.cmds as cmds

#craeting curves through points

from math import*

numRows = 20
numColumns = 20
num3rdDimension = 1
Points=[]
for i in range(0,numRows,1):
x = (i)
for j in range(0,numColumns,1):
y = j
for k in range(-1,num3rdDimension,1):
z = sin(k*i*j)# this will craete an undulating grid
myPoint=(x,y,z)
points.append(myPoint)
cmds.curve(d=3, p=points)


No comments:

Post a Comment