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 Panayot Karabakalov · Credited author: Anubis · 2011-09-28
Community compatibilityNo compatibility reports yet
No reports yet for the available releases.
Community reviewsNo reviews yet.
- Version
- 1.1
- 3ds Max compatibility
- Unknown
How compatibility works
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.
- Original version requirement
- 3ds max 2008 and higher (or need [AVG] Avguard Extensions for previous)
- Date updated
- 2011-10-01
- Legacy votes
- 4
- Homepage
- http://project3d.narod.ru
Release history
Version 1.1Listed version
Listing updated
- selectbymaterialid.rar2.3 KB
Tags: Modifiers, Editable Poly, MaterialiD, anubis, Editable Mesh, subobject level, select faces
Description
Additional Info
Original request (here)
The script is tested in Max 9/2009/2011
Usage Notes:
Before execute the script, select your base object or
desired modifier (one of 4 supported) in the stack.
Also for better control, be sure just one face is selected.
Warning Notes:
Calling Edit Poly modifier methods from MaxScript
works very unstable at my station, results varied all the time,
and this is the reason to avoid it in my scripts, but
its here though to make the script more complete and
with hope you'll have better luck with it than me.
So you're warned ;)
However, I hope you appreciate my efforts
and all the comforts that come from this macros.
More by Panayot Karabakalov
View all contributionsExploder
A detachment tool with a few extra options. Work with (and convert to (if not a)) Edit Poly. Currently tested on 3ds Max 2009.
Script
1 commentSelect Edges By Material ID
Add separate Edit Poly modifier to each of selected objects and apply edge selection by selecting only edges that connect faces with different material ID
Script
5 commentsLED style animation with MAXScript
Just illustration of an example approach which can be done and without writing code but there also a few points where using MAXScript can save alot of time. Ok, this I start just as idea for quick reply into the forum but as I remember LED…
Tutorial
4 comments
Comments (8)
Comment policy
Damn Poly-mod!
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
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 ;)
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!
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?
Thanks Anubis :) Very Helpful ;)
new version
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....
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.
I get this error when I run the script. Screenshot attached.
Using Max 2012 64bit
Attachments