don 't laugh first scripting attempt and i need a nudge 2005-01-03 - By Bob Cobb
Back Ok i have put this off forever. Getting involved in scripting. I know it is powerful just haven't really gotten around to it and I now have th perfect oppurtunity to do some basic stuff. What I am trying to do is create a script that selects the polys of an object one at a time and then extracts it to a poly mesh without deleting the generator. Using another script as a reference and splicing in the command for doing that procedure I came up with this. It doesn't seem to like the argument for the poly extract op. I was trying to use the polys number to name the polymesh that is created. I'm sure I am doing something really stupid but any nudge would be greatly appreciated.
Here is the script that I have.
for each myObj in Selection
Set myPolys = myObj.ActivePrimitive.Geometry.Polygons nPolys = myPolys.Count for i = 0 to nPolys - 1
ExtractFromComponents "ExtractPolygonsOp", "polymsh_extracted5.poly[]", "polymsh_extracted", , siPersistentOperation, siKeepGenOpInputs SelectFilter "object"
next next --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|