Jump to content

Selecting Objects by location using Maxscript


tangert
 Share

Recommended Posts

I figured out how to do what I was looking for...

 

p = point position:[x,y,z]

for o in geometry where distance o p == 0 do selectmore o

 

Now for the reason...I'm importing an Inventor assembly into VIZ 4. My assembly is made up lots of instances of a small number of unique parts. In Inventor I may have 20 instances of PartA...they will all be named uniquely PartA:1 - PartA:20. When they get imported into VIZ 4 all 20 parts get named PartA and I can't uniquley reference them by name...and I need to be able to change materials on select parts...

 

Oh, the other thing to mention here is that I'm generating the MaxScript on the fly from an Inventor add-in and feeding it into a VIZ render farm.

 

Tom.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...