Sunday, May 24, 2009

01B_COSMOS_POINTS


import maya.cmds as cmds

#creating a 3d points grid using mathematical function

from math import*

numRows = 20
numColumns = 20
num3rdDimension = 1
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)
cmds.spaceLocator(p=myPoint)

No comments:

Post a Comment