Notifications
Clear all
[Closed] objects sharing the same coords
Nov 08, 2005 9:26 am
I cant seem to get my head around filtering objects with the same coords out of a selection. I no how to compare them but cant seem to filter them so that i select only the double objects ie.
if i have four boxes in the same place how do i only select one of the boxes.
regards
Nebille
3 Replies
Nov 08, 2005 9:26 am
Ok,
Here is something I have lying around, will select all objects that have duplicate positions (not rotations!) it will leave the first one it finds but select all the others. you could replace pos with transform maybe for different results.
-- select all objects with duplicate positions in selection
o=#()
obj=selection as array
for i=1 to obj.count do
(
for j=i+1 to obj.count do
(
if obj[i].pos==obj[j].pos then
(
-- format "% % % %
" i obj[i].pos j obj[j].pos
append o obj[j]
)
)
)
select o
Cheers,
J¬
Nov 08, 2005 9:26 am
Thanks J , you have been a great help to me the last couple of weeks. Where do you work?
1 Reply