Detach Polygons based on its Material ID
Script
By Jeff Lim · 2006-10-21
No reports yet for the available releases.
Choose the 3ds Max version you use. For example, selecting 2020 puts direct matches for 2020 first, followed by listings that say a supported version or newer.
Scripts that only mention an older version can still appear as “2020 unconfirmed.” Listings that rule out 2020 are excluded. Use “Show scripts with unconfirmed compatibility” to also see listings without a clear match.
Community reports show what worked for members on a specific release. They’re separate from the listing’s compatibility claims and don’t change the filter.
Listing updated
Detach Polygons based on its Material ID
This script will simply let you divide a bone.
Script
This script will divide a fumeFx grid into partitions. This can also be used to simulate a batch of fume grids locally or via backburner. More info and sample usages here.
Script
Summary of changes for activeType 0.36 - removed spacewarp mods query (it was causing a bit of slowdown) - disabled subobject, pflow and slate modes (More detailed info on changes at the History notes below) Activetype is a quick way to…
Script
Comments (23)
Comment policy
Script Change
We want to change to mesh instead of poly when we run the script. How should I change it? We want the noodles to be mesh.
EditableMesh output would be great!
Could anyone adjust it to have EditableMesh as output objects?
This script saves lifes thanks for the effort !
a lot of errors
-- Error occurred in i loop; filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4358; line: 159
-- Frame:
-- theDetachedObj: $rug020
-- the_faces: #{1..114}
-- i: 1
-- called in obj loop; filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4471; line: 163
-- Frame:
-- the_orig: $rug18
-- the_mat: rug3:Standard
-- id_count: 7
-- obj: $rug18
-- Error occurred in detach_bot.pressed(); filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4553; line: 166
-- Frame:
-- the_sel: #($wassily_chair05, $wassily_chair04, $wassily_chair03, $coffee cups15, $coffee_table03, $rug18, $coffee_table05, $magazine_face_down01)
>> MAXScript Rollout Handler Exception:
-- Unable to convert: ReferenceTarget:Texmaps to type: Material <<
-- Error occurred in i loop; filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4358; line: 159
-- Frame:
-- theDetachedObj: $Maps001
-- the_faces: #{1..17214}
-- i: 1
-- called in obj loop; filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4471; line: 163
-- Frame:
-- the_orig: $cushion22
-- the_mat: farbric:Standard
-- id_count: 7
-- obj: $cushion22
-- called in detach_bot.pressed(); filename: C:\Users\XXX\Desktop\SCRIPTS\DETACH_BY_MATERIAL_ID\detachbyID.ms; position: 4553; line: 166
-- Frame:
-- the_sel: #($cushion22, $cushion08, $ceramic_bowl1, $cushion20, $sofa_right, $cushion11, $sofa_long_right06, $sofa_long_right04, $cushion12, $cushion21, $cushion13, $sofa_right01, $cushion14, $coffee_table01, $apples02, $ceramic_bowl02, $wooden_bowl02, $coffee_table, $apples01, $wooden_bowl1, ...)
>> MAXScript Rollout Handler Exception:
-- Unable to convert: ReferenceTarget:Texmaps to type: Material <<
Nice detach feature in this one too :
http://www.scriptspot.com/3ds-max/scripts/select-objects-by-bitmaptex
The best script ever to import "bad" clients sketchup models
This script is a life saver for that kind of models which comes all in one single layer. But the client toke the time to insert some materials definitions on it...
Really great man!, you save my morning!
request
would be great to have an option to detach by material ID to EditablePoly elements (not new objects) - separate macros without UI
thank you in advance
Random bitmap name
Great script dude,
But when tick the use bitmap name option, it saves it with a random bitmap name, not one that corresponds to the object!
Any ideas how to fix????
This is great, but freaks out and throws up an error when one of the selected objects has only a single id and cannot be detached.
Can this be easily fixed ?
Very Cool, wish it had one thing though
Very Nice!! I wish it had an option to group the objects after it blows them apart, or at least have all of the objects selected that it tweaked. Thank you for the script!
thanks for this script but...
it gave this error when trying it on a bunch of vray materialed objects...
i think it errors when
one of the selected objects had no multiple materials applied so have to choose the objects carefully!:)
doesn´t work for me
Hey man, the script doesn´t work for me. I´m using max2009, and when i click the detach button, nothing happens....
is a pity, because it´s a very useful script.
Thanks,
Jsrocha
thanks bro.. this script is very useful..
Great work !!
Plus 1 to Titanes request :)
it would be handy to make each object end up with its separate material and not the multisub.
Thanks! I might need to test this again.. but I think that's what the "Propagate Materials" is for. :)
O O O O
verygood ,thanks.^_^
Woaw ! simple and efficient... 5 ***** for this perfect script !
jerome Prévost (Subburb)
:-)
happy to see you're here !!!! :-)
Thanks again !
I will abuse : could it be possible to have each resulting separate object with right material applied ? (and not the multi subobject material ?)
For chrismas ? New year ? :-))
ok! somehow, i couldnt get myself to not update this script. merry christmas.
thanks, I'll try to look into the code again and see if i can make feasible adjustments. I can't promise an update anytime soon coz of busy schedules, my apologies.. :)
Great script, thanks !!!!
Last update 2005 is somebody strong enough to optimize it ? (a bit slow)