Loading a Python module from file

April 5th, 2012

I find myself often in the situation, where I need to load a particular Python file as module.

more

in Python

Simple RPC Python Module Part III

April 13th, 2011

Last part of this series, let’s wrap up the details of the server and exception handling, plus some other small details.

more

in Python

Simple RPC Python Module Part II

April 11th, 2011

Let’s have a look at the client implementation. On the client side, we mainly use two objects to communicate with the server: the client object and the attribute wrapper object.

more

in Python

Simple RPC Python Module Part I

April 8th, 2011

Over the years, I’ve stumbled across the need of a simple, yet effective RPC system in Python. I’ve used CORBA in a C++ application before that was steered over Python, and that worked alright, but I’ve often needed something simpler, and a bit less elaborate in it’s setup and configuration. I want to document here what I came up with.

more

in Python

Subprocess Output Caching

April 1st, 2011

A little bit of Python code to catch the output of a sub-process life, print it out to another file object and at the same time cache it for later. Useful for start-up scripts. more

in Python

Maya Utilities Part IV

March 30th, 2011

In the last of this short series about my Maya Utilities code, I want to look at how it all comes together, how I use it on a daily basis, and share the code with you. more

in Maya, Python

Maya Utilities Part III

March 28th, 2011

The last module in my current Maya Utils collection, files.py, deals with files and projects, and shows off a slightly more complex button.

more

in Maya, Python

Maya Utilities Part II

March 25th, 2011

This time, I want to have a look at two simple submodules for the Maya Utilities framework I described in my previous post.

more

in Maya, Python

Maya Utilities Part I

March 23rd, 2011

Obviously, I can’t use something like Maya for even a week, without starting to write myself little scripts and tools. Python and PyMEL help, although not always. The Maya API is sometimes really discouraging, but nevertheless, I set up a little framework for myself, to collect (and slightly organise) small scripts in Maya. Nothing fancy, but that’s the goal: simple little scripts, at your fingertips.

more

in Maya, Python

Threading in Qt

April 19th, 2010

I’ve been fiddling around with threads in Qt for a while now, and decided it was about time I sat down and got some things straight about it. Here’s a sum-up of what I found and the tricks I got down to.

more

in Python