rafoarc
07-04-2011, 11:56 AM
Hello.
I was wondering if there is a way to bypass the 'name window' that results from the detach() Spline Operation. I have a shape containing several splines and I want to detach each of the splines to a new object. I am able to do it without using the detach() with the following:
myShape = $
for s = 1 to (numSplines myShape) do
(
indAr = for i = 1 to (numSplines myShape) collect i
newShape = copy myShape
newShape.name = myShape.name + "_dt_" + s as string
delAr = deleteItem indAr s
select newShape
subobjectLevel = 3
setSplineSelection newShape delAr
modPanel.addModToSelection (deleteSplineModifier())
collapseStack newShape
subobjectLevel = 0
)
but it is slow and it looks a little strange...
thanks!
I was wondering if there is a way to bypass the 'name window' that results from the detach() Spline Operation. I have a shape containing several splines and I want to detach each of the splines to a new object. I am able to do it without using the detach() with the following:
myShape = $
for s = 1 to (numSplines myShape) do
(
indAr = for i = 1 to (numSplines myShape) collect i
newShape = copy myShape
newShape.name = myShape.name + "_dt_" + s as string
delAr = deleteItem indAr s
select newShape
subobjectLevel = 3
setSplineSelection newShape delAr
modPanel.addModToSelection (deleteSplineModifier())
collapseStack newShape
subobjectLevel = 0
)
but it is slow and it looks a little strange...
thanks!
