andrewherd.me

Technical Artist

Category: Programming

Maya reloading python modules

While working on a new tool inside of Maya, it gets very annoying to have to continually reload the python module or close out Maya and reload it every time you want to see a change to it.  At least I do. Especially when Maya is loaded down with all kinds of other tool bars/scripts/etc […]

Mosaic Render Program

          I’ve completed everything I set out to do for my mosaic render program. Now that it’s officially done, I can begin working on some of the other features I’ve thought of while building it. This was written in python with PyQt4, sqlite3, pil. I’m happy with the initial work on […]

VLC Capture Tool

While working on my Mosaic Image Generator, I realized I was going to need to generate a few thousand images. No better place to get images then from a video source. Now there are a few programs out there that will do this, but they wanted my money. VLC is free and comes with command […]

PyQt4 Class Inheritance

There are a few ways for PyQt4 to be inherited by the class that is being constructed and until recently I hadn’t noticed any different between one method over the other.

Python RLE Encoding

While working through one of the various planning stages of a new section of one of my projects, I realized that I was going to have a lot of integers on hand that repeated frequently. I know I’m going to need these lists at a later time, so my two options is to save it […]

TagBox Fun

  This was rather fun to put together. It still needs some work. The Autocomplete suggests wigs the heck out and crashes the whole thing with no information provided. I can also set it up to change the X to another symbol; though I’d like to change it over to an icon. There’s also a […]

Autosave for Photoshop

  Photoshop is one of those programs that likes to crash frequently. In fact the more important the current image you are working on, the greater the chance of Photoshop crashing. There is also a greater chance of you failing to remember to save your file sometime in the last three or four hours. Wouldn’t […]

Running PyQt4 Scripts on Snow Leopard

Calling python scripts from the terminal window run fine. But when running python scripts with PyQt4 embedded, they require a little more then just ‘python script.py’. This may be from the previous entry on how the PyQt4 was installed, but regardless this information has been gleaned from the internet: arch -i386 python2.6 %pathToScript% Without the […]

Open my Location

I’ve found that whatever scene I have open in Maya, I need it’s folder open as well for some reason or another. Here’s a dumb script to open up the first file path it finds inside of the Maya file, which generally should be the path where the file is located. import maya.cmds as mc […]