Jump to content

Detatch Objects


Devin Johnston
 Share

Recommended Posts

toolTip="ExplodeElements to seperate objects"
buttonText="ExplodeElements to seperate objects"

--start macro

--- maxscript ExplodeElements

--- author: andrei kletskov (111) - http://andklv.narod.ru - andklv@mail.ru
--- description: this script explodes ojects' elements into separate objects
--- v0.1 - (22 july 2008) - initial version
--- v0.2 - (20 oct 2008) - complete new algorythm in attempt to speed-up



undo on
(
coll = #()
for obj in selection do
(
	try
	(
	convertTo obj PolyMeshObject
	c = 0
		while obj.faces.count > 0 do
		(
			c = c + 1
			el = polyOp.getElementsUsingFace obj obj.faces[1]
			polyOp.detachFaces obj el delete:true asNode:true name:(obj.name + "_EE_" +(c as string))
		)

		append coll obj
	)
	catch
	(
		print ("error processing: " + (obj.name as string))
	)
)
delete coll
)

Link to comment
Share on other sites

That was a found script one day when i was doing something similar, the guy has quite a few useful snips on his site (its in the comments of the script)

 

after the fact to center pivots you can just run this script to do that:

 

centerpivot $

 

I believe you can do it with the UI also, but i use it often enough that i made it a macroscript for hotkeying heh.

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