Jump to content

Need a script recommendation for detaching objects.


Crazy Homeless Guy
 Share

Recommended Posts

I am searching for the best script / method for detaching 'random' elements from a editable mesh or editable poly.

 

Any recommendations?

 

I have tried a few scripts and methods, but the mesh is heavy enough that after processing for an hour the computer is still just sitting there.

 

Currently I am trying to randomly detach leaf planes from a an Onyx leaf mesh. I don't have the original Onyx file to resort to, and all of the leaf planes currently have the same ObjectID.

 

EDIT: The mesh I am working with has 928,000 polygons and roughly 232,000 elements. I need to select and detach maybe 2% of those to turn them into flowers instead of leaves.

Edited by Crazy Homeless Guy
Link to comment
Share on other sites

IMHO the best way to do this is to use the Material by Element modifier. Let it randomly assign mat id's to your object then throw an edit mesh on top and detach elements with the ID you want. It's super fast - shouldn't take long even on your high poly tree.

Link to comment
Share on other sites

IMHO the best way to do this is to use the Material by Element modifier. Let it randomly assign mat id's to your object then throw an edit mesh on top and detach elements with the ID you want. It's super fast - shouldn't take long even on your high poly tree.

 

Worked like a charm. Many thanks.

 

Oh, ...and it only took maybe 20 seconds compared to the hour the various random select script on Scriptspot were taking.

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