Community
3ds Max Forum
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select all objects with id

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
2589 Views, 2 Replies

Select all objects with id

Working with 3ds max imports from revit and it really doesnt let you group things so I set my objects all with the same id 54. Is there a easy way to reselect everything with id 54?

2 REPLIES 2
Message 2 of 3
blakestone
in reply to: Anonymous

I assume you're referring to the G-Buffer Object ID. 

 

id.gif

 

If so you can use the script below in the MAXScript Listener:
 
-- Click MAXScript > MAXScript Listener
-- Clear anything showing in the pink area and paste the below script in there
-- Highlight all the script in the pink area (because it executes only the selected lines) and press ENTER on the NUMPAD to execute.

 

This will deselect all objects in your scene and reselect all the objects with an ID of 54.

 

 

(
	clearselection()
	for o in objects where o.gbufferchannel == 54 do selectmore o
)

 

--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------
Message 3 of 3
blakestone
in reply to: Anonymous

visual example:

 

example.gif

--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report