import maya.cmds as cmds
from math import *
from random import *
numRows = 5
numColumns = 7
numLevels = 5
amplitude = 4
points = []
#define curves first
for i in range(0, numRows, 1):
x = tan(3*i)*amplitude
for j in range(0, numColumns, 1):
y = sin(2*j)*amplitude
for k in range(0, numLevels, 1):
z = k+amplitude
myPoint = [x,y,z]
print "point ", x, y, z
points.append(myPoint)
#create curves from points
cmds.curve(d=1, p=points)
No comments:
Post a Comment