Select all faces with Mareial ID equal to selected one.
Work with base Poly/Mesh & Edit/Select Poly/Mesh Modifiers.
Work on currently selected object/modifier in the modifier stack.
Script
SelectByMaterialID
By Anubis · 2011-09-28
- Version
- 1.1
- Version requirement
- 3ds max 2008 and higher (or need [AVG] Avguard Extensions for previous)
- Date updated
- 2011-10-01
- Votes
- 4
- Homepage
- http://project3d.narod.ru
Description
Additional Info
Attachments
- selectbymaterialid.rar — selectbymaterialid.rar2.3 KB
Tags: modifier, Editable Poly, MaterialiD, anubis, Editable Mesh, subobject level, select faces
Comments (8)
Damn Poly-mod!
Anubis · 2011-09-30
Edit Poly modifier going crazy today here :<
The SetSelection() stop working at all, while
selectByMaterialID() come-back from the dead, but...
it "work" so distorted!...
1. it appending instead of replacing selection.
2. select next ID's ( +1 ), for example if ID is 1 then select 2.
I can suggest to use Edit Mesh modifier,
Edit Poly modifier is very unstable.
thaks to all
Anubis · 2011-09-29
Thanks to all for the comments!
@ both (harumscarum and mwaif):
All methods works equal (using first ID).
Also I never needs redrawViews() to update poly/mesh ops.
If those are issues relevant to Max 2012,
I'm afraid that I can't help.
@ harumscarum:
I think the script fill your initial request,
and what you ask start to become more complex,
but will kept it in mind for some free time ;)
mwaif · 2011-09-29
I can confirm harumscarum. Edit poly is partially working. One more small issue, redrawViews() is needed because screen does not get updated after the operation.
thank you!
harumscarum · 2011-09-29
now working but only with EditablePoly.
if EditPoly modifier is applied it select only first ID
PS is it possible to upgrade it select multiple IDs if more than one ID was initially selected?
Michele71 · 2011-09-29
Thanks Anubis :) Very Helpful ;)
new version
Anubis · 2011-09-29
The script is tested in Max 9/2009/2011.
I can't test it in Max 2012 so download
last version and let me know is it fine.
Hmm....
Anubis · 2011-09-29
I'll make code revision anyway 'cause I know one mini chop remains, but this is new and very odd...
Thanks for report, I'll check this out soon.
mwaif · 2011-09-29
I get this error when I run the script. Screenshot attached.
Using Max 2012 64bit
Attachments
- err.jpg — err.jpg31 KB