Categories
Programare Python in Maya

Globuri pentru Pomul de Craciun

import maya.cmds as cmds
import random
for i in range(50):

 
      j=i%4+1
      cmds.polySphere()
      cmds.move (random.randint(0,10),random.randint(0,30),random.randint(0,10))  
      cmds.hyperShade(assign='blinn%d'%j)