View Full Version : Object by material
Is there a way to select an object by material, assigned to it, without checking all the objects material property?
|
|
Originally posted by NRat
Is there a way to select an object by material, assigned to it, without checking all the objects material property?
In MAXScript, you would have to loop through the objects and check the material property
theMat = meditmaterials[1] --get Medit slot 1
theArray = for o in Geometry where o.material == theMat collect o
select theArray
--note that this will select also hidden and frozen object - you might need to check for hidden and wrozen state in the "where" expression, too...
In standard MAX UI, there is a button in the Material Editor that does this already. So unless you really need this as a function inside a script for some reason, you don't really have to recreate the functionality...
Cheers,
Bobo
CGTalk Moderation
01-17-2006, 11:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.