em3
08-08-2009, 05:26 PM
The following code is selecting objects and welding their verticies. I am also trying to name each object appending an i to the end of the string. Pretty simple but it keeps throwing this error.
Unable to convert: 1 to type: String
(
Objs = for o in objects collect o
for o in Objs do
(
for i = 1 to objs.count do
(
x = o
x.name = o.name + "_mesh" + i
select o
subobjectLevel = 1
actionMan.executeAction 0 "40021"
$.EditablePoly.SetSelection #Vertex #{1..76}
$.EditablePoly.weldFlaggedVertices ()
subobjectLevel = 0
)
)
)
Where am I going wrong here?
Unable to convert: 1 to type: String
(
Objs = for o in objects collect o
for o in Objs do
(
for i = 1 to objs.count do
(
x = o
x.name = o.name + "_mesh" + i
select o
subobjectLevel = 1
actionMan.executeAction 0 "40021"
$.EditablePoly.SetSelection #Vertex #{1..76}
$.EditablePoly.weldFlaggedVertices ()
subobjectLevel = 0
)
)
)
Where am I going wrong here?
