In this quick Maxscript tutorial, we’ll cover three powerful snippets to help you quickly select objects in your 3ds Max scenes based on wirecolor and material assignment.
These small but useful scripts are perfect for cleaning up complex scenes, organizing materials, and speeding up your workflow — especially in ArchViz and large production environments.
Code snippets
1. Select objects with the same wireframe color
This snippet lets you select all objects in the scene that share the same wireframe color as the currently selected object.
select (for o in geometry where o.wirecolor == $.wirecolor collect o)
Useful for quickly organizing scenes when you use wirecolors for visual categorization.
2. Select objects with no material assigned
This snippet will select all geometry objects without a material assigned.
select (for o in geometry where o.material == undefined collect o)
Perfect for detecting missing materials or incomplete assets in large scenes.
3. Select objects with the same material as the selected object
This allows you to select all objects in the scene using the same material as the currently selected object.
select (for o in geometry where o.material == $.material collect o)
Great for batch editing or global material adjustments.
More productivity tools and scripting for 3ds Max
If you found these tips helpful, be sure to check out our professional plugins and tools for 3ds Max.
We also offer custom scripting services to automate repetitive tasks and boost your workflow!
