Select objects with identical position

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

Comments

Comment viewing options

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

Maybe something like

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

Never get low & slow & out of ideas

seagull's picture

Brilliant, thanks for this!

Brilliant, thanks for this!

Comment viewing options

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