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)

Obiecte Multicolore

import maya.cmds as cmdscmds.polySphere(sx=16,sy=16)for i in range(300): j=i%4+1 cmds.select(‘pSphere1.f[%d]’%i) cmds.hyperShade(assign=’blinn%d’%j) import maya.cmds as cmds cmds.polySphere(sx=40,sy=30) for i in range(1200): j=i/10%4+1 cmds.select(‘pSphere1.f[%d]’%i) cmds.hyperShade(assign=’blinn%d’%j)