obj = cmds.ls(sl=1)
nrVtx = cmds.polyEvaluate(obj, vertex=1)
for i in xrange(nrVtx-1):
cmds.polySplitVertex('%s.vtx[%d]' % ( obj, i), constructionHistory = 0)
cmds.polyExtrudeFacet(obj, localTranslateZ = -.1, constructionHistroy = 0)
cmds.polySeparate(obj, constructionHistroy = 0)
but as soon as I hit a certain iteration step (around 300) during polySplitVertex I run out of memory.
What optimization steps can I make in addition to the one above( no history build-up )? Or is this the wrong way? I would like maya to free memory after every step, and finally hit 5000 iterations or even more... and any tips on speed improvements? I know I want much. i am greedy :)