Monday, May 18, 2009

clau_grids of points


#grid of points using nested loops
#rotating grids of points in "z" axis
numRows=12
numColumns=10
for i in range (0,numRows,2):
x=i
print "row", i
for j in range (0,numColumns,1):
y=j+1
print "column", j
z=1
myPoint = (x,y,z)
cmds.spaceLocator (p=myPoint

numRows=12
numColumns=10
for i in range (0,numRows,2):
x=i/2
print "row", i
for j in range (0,numColumns,1):
y=j+1
print "column", j
z=-1
myPoint = (x,y,z)
cmds.spaceLocator (p=myPoint)

numRows=12
numColumns=10
for i in range (0,numRows,2):
x=-i/2
print "row", i
for j in range (0,numColumns,1):
y=-j
print "column", j
z=2
myPoint = (x,y,z)
cmds.spaceLocator (p=myPoint)

numRows=12
numColumns=10
for i in range (0,numRows,2):
x=-i
print "row", i
for j in range (0,numColumns,1):
y=j
print "column", j
z=3
myPoint = (x,y,z)
cmds.spaceLocator (p=myPoint)

numRows=12
numColumns=10
for i in range (4,numRows,2):
x=i
print "row", i
for j in range (0,numColumns,1):
y=j+2
print "column", j
z=5
myPoint = (x,y,z)
cmds.spaceLocator (p=myPoint)

No comments:

Post a Comment