falchun
10-16-2005, 12:31 AM
I have a script that extrude some shapes one by one. And I want to had a thing to it. See the comment :
sel = selection as array
for i in 1 to sel.count do (
if superclassof sel[i] == shape do (
print sel[i].name
addModifier sel[i] (extrude amount:9)
addModifier sel[i] (Edit_Mesh ())
sel[i].name = "House"
sel[i].wirecolor = color 38 200 0
-- THEN .....
-- Open the edit Mesh Panel
-- Select the POLYGON sub-menu
-- select the Polygon by his Smoothing Groups ID that I know is "5"
-- and extrude this Polygon by an amount of my choice
)
)
Is there a way to do that ?
Which function should I use ?
Thanks in advance.
Falchun
sel = selection as array
for i in 1 to sel.count do (
if superclassof sel[i] == shape do (
print sel[i].name
addModifier sel[i] (extrude amount:9)
addModifier sel[i] (Edit_Mesh ())
sel[i].name = "House"
sel[i].wirecolor = color 38 200 0
-- THEN .....
-- Open the edit Mesh Panel
-- Select the POLYGON sub-menu
-- select the Polygon by his Smoothing Groups ID that I know is "5"
-- and extrude this Polygon by an amount of my choice
)
)
Is there a way to do that ?
Which function should I use ?
Thanks in advance.
Falchun
