Jump to content

Select all objects with NO MATERIAL


eduardosilva1
 Share

Recommended Posts

  • 2 weeks later...
select (for geo in geometry where not isKindof geo TargetObject and isKindOf geo.material UndefinedClass collect geo)
Make the above script into a button :)

 

How this isn't just a right-click menu item in the material editor or something, I don't know, as Maya has had this feature forever. But there you go. Another Max hole that needs plugging manually!

Link to comment
Share on other sites

--Find Undefined Materials V1.0

 

--Dean Punchard 2012

--dean@arddigital.co.uk

--www.arddigital.co.uk

 

--This script will select all objects that have no material assigned to them.

 

macroScript MICC category:"Ard Scripts" tooltip:"Find Undefined Materials" buttonText: "Ard FUM"

(

select $*

selected_object = $

 

for m in selection do

(

select (for m in selected_object where ((m.material == undefined) and m.isHiddenInVpt == false) collect m

)

)

)

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...