i want to create floor tiles of different sizes with cubes, but i don't know how to do that.
what i have right now is this: it creates cubes with random size.
import maya.cmds as cmds
import random
cubeList = cmds.ls( 'myCube*' )
if len(cubeList) > 0:
cmds.delete( cubeList )
for i in range(0,5):
dRand = random.uniform(0.8,3)
tegel = cmds.polyCube( name= 'myCube#', w = 1, h=0.8, d = dRand)
cmds.move(i, 0, 0)
i+=1