same name obj delete

hello again
i have new problem
that is same name obj delete
i would like to same name obj except 1

example)
box box box [3]

result

box [1]

objarr = #()
ddd = $.name

objarr = for o in Geometry where o.name == ddd collect o

For i = 2 to objarr.count do
(

select objarr[i]
delete
)

)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

Try this

nodes = datapair original:#() doubles:#()
for o in geometry do
(
	if finditem nodes.original o.name == 0 then append nodes.original o.name 
	else append nodes.doubles o
)
delete nodes.doubles

barigazy

dussla's picture

REALLY thak you

really really thank you
you are my sky always~

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.