Any way to add the UVW Remove - Materials to a quad? If not, how can i attach a object maintaining only the main object material?

Any way to add the UVW Remove - Materials to a quad? If not, how can i attach a object maintaining only the main object material?

matheuspalmd
Enthusiast Enthusiast
379 Views
4 Replies
Message 1 of 5

Any way to add the UVW Remove - Materials to a quad? If not, how can i attach a object maintaining only the main object material?

matheuspalmd
Enthusiast
Enthusiast

How to add that button (see below) to a quad menu? And how can i discover what is the group/category of any command? Is there a list?

 

Also, let's say i have object A (main) and object B. Both have materials assigned to them. How can i attach B to A but maintaining material A? When i attach the "Attach Options" dialog opens up but none of the options seems to do what i want. 

I often have to use the remove materials button because after the work is done and i want to clean the scene there will be leftovers because now object A+B has a multimaterial, and even if i delete the B part, it is still in the scene.

matheuspalmd_0-1747247828927.png

 

0 Likes
Accepted solutions (1)
380 Views
4 Replies
Replies (4)
Message 2 of 5

matheuspalmd
Enthusiast
Enthusiast

Forgot to mention, i'm using Max 24

0 Likes
Message 3 of 5

MartinBeh
Advisor
Advisor

Removing a material from the current selection, using MAXScript, is as simple as

$.material = undefined
Martin B   EESignature
→ please 'Like' posts that are helpful; if a post answers your question please click the "Accept Solution" button.
0 Likes
Message 4 of 5

matheuspalmd
Enthusiast
Enthusiast

Ok but is there a way to place it into the quad menu? Because making it a button is kinda pointless

0 Likes
Message 5 of 5

MartinBeh
Advisor
Advisor
Accepted solution

You can wrap that single line into a macroscript - which then can be used as a button, a hotkey, a quad menu entry, a main menu entry...

macroScript clearMaterial
category:"MB Tools"
(
   if selection.count > 0 then selection.material = undefined
)

Run this code, then look in the Customize > Customize UI (or > Menu editor) dialog for the action "clearMaterial" in the category "MB Tools"

Martin B   EESignature
→ please 'Like' posts that are helpful; if a post answers your question please click the "Accept Solution" button.
0 Likes