discoLights

import maya.cmds as cmds

#get total number of verts
iVertexCount = int(cmds.polyEvaluate('pCube1',vertex=True))
foo = range(0,iVertexCount)


#create aim
aimer = cmds.spaceLocator(n='aimLocator', p=(0,0,0))


for c in foo:
	lightPos = cmds.pointPosition( 'pCube1.vtx[%s]' % c )	
	cmds.spotLight(n='discolight%s' % c)
	cmds.move (lightPos[0], lightPos[1], lightPos[2], 'discolight%s' % c)
	cmds.aimConstraint(aimer,'discolight%s' % c, mo=False, aim=[0,0,-1])
I wish to do something Great and Wonderful, but I must start by doing the little things like they were Great and Wonderful”
~ Albert Einstein