Show exsisting material - MEL

Show exsisting material - MEL

jayantbhatt07
Advocate Advocate
484 Views
1 Reply
Message 1 of 2

Show exsisting material - MEL

jayantbhatt07
Advocate
Advocate

Hi I'm making a small script where when I right click on the button it should show me the list of materails in maya sceneand I can directly apply from it.

 

window;
columnLayout;
symbolButton -image "commandButton.png" -c "()" ;
popupMenu;
menuItem;


showWindow;

0 Likes
Accepted solutions (1)
485 Views
1 Reply
Reply (1)
Message 2 of 2

lee.dunham
Collaborator
Collaborator
Accepted solution

It looks like you still have a little bit to do yet.

Try breaking down the script into chunks.

You want to find the available materials.

You want to right click a button and show a list of those materials.

You want to assign a material to your selected objects.

Once you do this you will have a better idea of what you need to look for command wise.

 

Also, try using the Echo all commands option in the script editor to help you see how Maya does some of these things.

0 Likes