Skip to content

Instantly share code, notes, and snippets.

@heiths
Last active December 17, 2015 16:29
Show Gist options
  • Save heiths/5638764 to your computer and use it in GitHub Desktop.
Save heiths/5638764 to your computer and use it in GitHub Desktop.
qubeQubed
from pymel.core import *
row = 10
column = 10
height = 10
x,y,z = 0, 0, 0
for i in range(0, row * column * height):
box = polyCube()[0]
if i % row == 0:
x = 0
z += 1
x += 1
if i % (row * column) == 0:
y +=1
z = 0
box.t.set(x,y,z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment