Jump to content

split elements by material


Chad Warner
 Share

Recommended Posts

I've got several editable polys imported from sketchup into MAx 2010 that has multiple materials applied to it, that I'd like to be able to split up by material (Not necessarily MatID, because the object may have 3 ID's that are all one material). Is there an easy way to do this?

 

Thanks,

 

Chad

Link to comment
Share on other sites

I use that one a lot.. it has a couple bugs though,

 

run it on a not too huge set of objects (say, under 2000) or it can run out of ram and crash/lockup

 

the delete objects thing doesn't actually delete the host objects in most cases, so i run a second script after to delete empty meshes

 

	sel = selection as array
	for obj in sel do 
		if (obj.numfaces == 0) do delete obj 

 

sometimes it skips objects? So i just run it a couple times.

 

anyway!! script comes in handy, if you're feeling annoyed at multisubs with the new slate material jam like I am.

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