Steaua pentru Pomul de Craciun

cmds.polyCylinder(h=.1,sx=10)
for i in range(20,30,2):
cmds.select(‘pCylinder1.e[%d]’%i)
cmds.scale(3,1,3)

Multe Stelutze

import maya.cmds as cmds
import random
for j in range(0,10):
cmds.polyCylinder(h=.1,sx=10)
cmds.move(random.randint(0,30),0,random.randint(0,30))
for i in range(20,30,2):
cmds.select(‘pCylinder%d.e[%d]’%(j+1,i))
cmds.scale(3,1,3)