Programare Python Lectia 7

import maya.cmds as cmds
cmds.polySphere()
for i in range(1,500,2):
    cube1=cmds.polyCube(w=.5,h=.5,d=.5)
    col1=i%3+1
    cmds.hyperShade(assign=’blinn%d’%col1)
    pointpos=cmds.pointPosition(‘pSphere1.vtx[%d]’%i)
    cmds.move(pointpos[0],pointpos[1],pointpos[2])
    cmds.setKeyframe(cube1,attribute=’scale’,t=[’10sec’],v=2)