>
> import pymel.core as pm
>
> myNum = 5
>
> for i in range(10):
>
> pm.polyCube()
> pm.move(0,0,i*2)
>
> pm.select('pCube5.f[myNum]')
> pm.delete()
pymel generally allows you to avoid string formatting when dealing with nodes,
attributes, and components. for example, the above could be written like so:
import pymel.core as pm
myNum = 5
for i in range(10):
pm.polyCube()
pm.move(0,0,i*2)
cube = pm.PyNode('pCube5')
pm.select(cube.f[myNum])
pm.delete()
-chad
--
http://groups.google.com/group/python_inside_maya