Hi there,
I'm pretty new to scripting in Max. Was wondering if anyone knew a good script for selecting objects with identical positions?
Many thanks
Forum topic · General Scripting
By seagull · 2011-07-26
Hi there,
I'm pretty new to scripting in Max. Was wondering if anyone knew a good script for selecting objects with identical positions?
Many thanks
br0t · 2011-07-26
Maybe something like this:
(
foundObjs = #() --create an empty array
for o in objects do --loop over all objects
(
for f in objects where f != o do --check if position of current obj matches the position of any other obj
if o.position == f.position do append foundObjs o --if yes, put the obj into the array
)--end for
select foundObjs --select the array
)
Cheers
seagull · 2011-08-09
Brilliant, thanks for this!