I suspect the time has come for us to finally recognize Minecraft as a digital creation platform and not just a game. Case in point, virtual computers. Kids around the world are just now making: 16-bit computer (Arithmetic Logic Unit) 256-bit computer Dual Core CPU 16 bytes RAM Display monitor and 3D printer These technologies [...]
READ MORE »Maya’s programming languages
It seems like there are more and more posts, queries, and threads about Maya’s different scripting languages. I figure it’ll be nice to have a nice listing of the languages, their benefits and uses. Here is a quick breakdown: MEL: Entire application is basically written in MEL Super simple, easy to learn Very limited in [...]
READ MORE »path(), the awesomest class
Jason Orendorff wrote an awesome module some years ago to make it quick and easy to manipulate file paths and file names. I was fortunate enough to be exposed to this module and class via PyMEL’s package which included it. Here is our test path and we’ll slice it and dice it in all kinds [...]
READ MORE »PyMEL Virtual Classes
Teaming up with @voMethod on this one. Mr. Seth Gibson offered some help and extra content for my GDC Power Python talk. Unfortunately, I was limited to 50 minutes so I did not get time to illustrate some great examples he offered. Now we have the time, so here is a nice piece on [...]
READ MORE »Unit-testing, the dark art
You may have heard about unittests in the past, and most likely, like myself, didn’t really know what they were or why you would want to use them. Even if you talked with someone who did use them and loved ‘em, they still had a difficult time explaining what they really were. Well I’ll do [...]
READ MORE »Maya Environment
One of the first things to check when a (python) script is not loading or importing properly is your *pythonpath* environment variable. This is because Python modules are VERY dependent on path location. So if you ever get an error that says something like this: or then you better check your pythonpaths by using simple [...]
READ MORE »Wing/Maya Remote Debug Setup
There are some great posts and pages explaining how to setup Wing IDE to remotely debug a Maya session. Eric Pavey first posted how to do this at his WarpCat Blog along with how to send commands back and forth to Maya from Wing. Luckily, now, many of us are starting to use this workflow [...]
READ MORE »Power Python for Maya Development – GDC 2011
Do you ask yourself any of these questions? a). Ever wonder what the big deal is with Python vs. MEL? b). What is all of this Python Classing and PyMEL nonsense? c). Why go to the trouble of using a complicated IDE? The answers are in my talk from GDC last week. Hope it helps [...]
READ MORE »@deprecated Decorator
Turns out that I’m always, repeat, always re-writing, and re-organizing my code. If you’re like me, you’ll want to leave your old functions or classes & methods in place while you re-write or move them. Then you’ll want to leave little tags everywhere there is an old call to one of these. Seth Gibson (@voMethod on Twitter) [...]
READ MORE »Python @staticmethod and @classmethod
(Lifted from Didip Kerabat’s blog HERE) Unlike Java, where static method and class method are the same thing, in Python there is subtle difference: Say function a() is defined in Parent Class, while Sub Class extends Parent Class If function a() has @staticmethod decorator, Sub.a() still refers to definition inside Parent Class. Whereas, If function a() has @classmethod decorator, Sub.a() [...]
READ MORE »
Recent Comments