Code: Select all
i = 1
Do
SelectPolygonFilter
SelectGeometryComponents "sphere.poly[1]"
ExtractFromComponents "ExtractPolygonsOp", , "polymsh_detached", True, siImmediateOperation, siKeepGenOpInputs
i = i + 1
Loop Until i = 100
now the problem is: the script works only if the object name is "sphere", so i ask if you know what is the command for "get the name of the selected object".
edit: I placed the code inbetween
Code: Select all
-tags for optimal readability - HB[/color][/size]