Maya Python – Select Objects with Selected Object(s) Material

UPDATED MARCH 18, 2016 – Output script information to the bottom command line after realizing there was a way to print there using Python.

select Objects with Material

One of the commands I heavily rely on aside from the much abused toggle isolate for selections is the Select Objects With Material command of the Hypershade. I usually hide/isolate stuff based on their material while modeling and unwrapping. Sometimes I even assign temporary materials to have selection sets/groups (There are better ways but it works and it became a habit, and having them on bright colors helps visually). It’s really such a convenient tool, but what I’m not a fan of is having the Hypershade open, right clicking the Material of your preference, and clicking on the command. When you work with a laptop like me, you’ll know that real estate is very precious. Continue reading “Maya Python – Select Objects with Selected Object(s) Material”

Maya Mental Ray Contour Rendering not rendering Wireframe

On one of my projects, I tried to render my wireframes using contour rendering. I followed the instructions from Ayan Ray’s post “The best way to render wireframes in Maya“, but didn’t have any wires showing up. After troubleshooting, I found out that no wires would render when using Unified Sampling. Continue reading “Maya Mental Ray Contour Rendering not rendering Wireframe”

Maya Viewport Texture Transparency Issue

When plugging in textures and trying to view them in Maya’s viewport, sometimes you’ll notice that there are transparency issues. The shaded looks fine, even the render, but when the texture view is on (whether you’re on default, high quality, or viewport 2.0), you get the image below.

Toggle Isolate Selected in Maya

Shift + I in Maya default keys isolates a selection, but has no hotkey assigned to bring it back. The reason, I believe, is that people prefer to make isolations within their prior isolations, instead of having it toggle. I personally prefer the latter, using it a lot to temporarily hide things as I work on a specific area. Going to the current panel’s Show > Isolate Select > View Selected was a little too tedious for me, so Continue reading “Toggle Isolate Selected in Maya”

Select N-Gons and Tris in Maya

UPDATED APRIL 21, 2017 – removed that error when no selection is made before hitting the commands.

One of the tools I miss from Softimage when using Maya is the ability to select the Triangles and N-Gons with a click of a button. Apparently, in Maya you have to go to Mesh > Cleanup or Select > Select Using Constraints and then tick the right values within the right component mode. More than two clicks is too much and confusing for me, so I slapped these scripts on to my shelf. It selects all faces that are either N-Gons or Triangles, highlights them, and then outputs a count via Continue reading “Select N-Gons and Tris in Maya”