|
How can I determine if an object has a Multi/Sub-Object material applied to it?
~Dave
http://www.max-realms.com - 3ds Max models, tutorials and forums
Max3-2010
|
|
|
|
classOf obj.material
Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.
|
|
|
|
Thanks, works great.
Here’s the code if anyone else needs it in a small utility:
rollout testMaterial "Test Material" width:268 height:138
(
button btn1 "Test Material" pos:[54,42] width:157 height:42
on btn1 pressed do (
for obj in selection do
MessageBox ((classof obj.material) as string)
)
)
createDialog testMaterial
~Dave
http://www.max-realms.com - 3ds Max models, tutorials and forums
Max3-2010
|
|
|