Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Select materials from objects hotkey from outside hypershader?

Select materials from objects hotkey from outside hypershader?

i_am_fail
Enthusiast Enthusiast
254 Views
1 Reply
Message 1 of 2

Select materials from objects hotkey from outside hypershader?

i_am_fail
Enthusiast
Enthusiast

I'm just starting to get into maya programming, and something extremely useful I would like to do is:


I have already set up a hotkey, when the Hypershade window is active, pressing "M" will run the Edit -> Select Materials from Objects command.

I would like this hotkey to be activatable while in the model viewport though, it's annoying having to target my mouse over the hypershade window each time I make a new selection and want to see the material.

Is there a way to programmatically hook up firing the "Select Materials from Objects" command from a hotkey inside the viewport - not the hypershade window?

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

i_am_fail
Enthusiast
Enthusiast
Accepted solution

i_am_fail_0-1661681388864.png

figured it out, see screenshot

0 Likes