Tuesday, June 9, 2009

Assingnment 01B - 3D GRID










import maya.cmds as cmds
#3d points grid
from math import*
numRows = 50
numColumns = 10
num3rdDimension =40
for i in range(0,numRows,3):
x = (i)
for j in range(0,numColumns,1):
y = j
for k in range(-1,num3rdDimension,1):
z = sin(k*i*j)
myPoint=(x,y,z)
cmds.spaceLocator(p=myPoint)

No comments:

Post a Comment