Posts Tagged: python

Remove your QApplication eventFilters!

I recently noticed that one of my PyQt-based Maya tools was introducing a noticeable lag into Maya. Not so much that you’d notice if you only ran the tool once or twice but definitely there if you ran it 10-20 times or more. My first thought was maybe I was doing something weird to the… Read more »

Debugging Python Plug-ins for Maya

One of the things I initially found challenging about developing Python plugins for Maya is how tricky they can be to debug. There’s a tendency for them to crash Maya when something goes wrong, leaving nothing but vague stack traces in their wake. For instance, in the screenshot to the right we’re told that an… Read more »

Python vs C++

Every once in a while I’ll see someone asking whether they should use Python or C++ for a plugin they’re writing. It’s one of those questions that seems highly subjective until you realize there’s plenty of situations where there’s only one right answer. My original plan was to write a detailed post where I went… Read more »

Building AETemplates with PyQt

I’ll be honest. Building an AETemplate using MEL is an activity that I enjoy about as much as going to the DMV. It’s very tedious and can take forever to get anything done. The more complexity you add, the more daunting the logistics become. At this point, you’re probably thinking “Oh, he’s about to talk… Read more »

Working with custom widgets and signals in Maya PyQt

In my previous post, I introduced the fundamentals of using PyQt to develop interfaces for Maya. Now, I’m going to take it a step further and show you how to create custom widgets along with their own custom signals and connections. Our goal is to build upon the previous tutorial to create a more advanced… Read more »

Creating a simple UI in Maya using PyQt

In this post, I’m going to cover the very basics of using PyQt in Maya. I’m working with Maya 2011 but this should be relevant for 2012 & 2013 as well. To benefit from this tutorial, you should already be reasonably familiar with Python, particularly with respect to Maya. You do not have to know… Read more »