Dave Girard's 101 Autodesk® Maya® Tips is now available in Kindle, interactive iPad edition and DRM-free EPUB/PDF editions. Work faster, cry less. Read more about the ebook.




Follow cgbeige on Twitter

Topics by tag:



Recently published articles by Dave G:



Free downloads by Dave G:



Mac OS X-only downloads:

Updated Hotkey Script for Material Selection à la Maya Right-click Menu

So, a while ago I posted a handy hotkey script to bring up the Attribute Editor for the selected object’s material but it didn’t work properly with face-level component selections, if there were multiple materials on the mesh (this is also a problem for showShadingGroupAttrEditor). You can see the difference between the old script and the new one here (with my Venetian Snares playing in iTunes – oops):

Here’s an updated script that works well – put it in your Maya hotkeys and assign it to a key combo. The openAEWindow at the start ensures that you don’t get that weird hiccup fallback to the shape node if the AE window isn’t already open. Here’s a download link (updated to work with object and face selections):

materialEditorHotkey.mel

Put it in your scripts folder and call it from a hotkey with materialEditorHotkey; in the User hotkey text field:

imageUpdate 2: now does a select toggle for component mode, so you don’t lose your face selections when it does it’s thing.

3 notes | Permalink

  1. the-sonia reblogged this from polygonspixelsandpaint
  2. polygonspixelsandpaint posted this