Posts Tagged ‘ Python ’
I recently read a blog post about python-coverage. This is a module which works out how much of a python file has been used when a python file is run.
One very helpful use it can be put to is that of working out how much of a project’s source code has been covered by unit tests and I decided to try this for the Entertainer Media Center project.
What follows is how I installed and used python-coverage to work out how much of the Entertainer Source code is actually tested when all our unittests are run. I relied upon this webpage and the command line help available from python-coverage.Continue Reading »
I’ve started a googlecode page for the python code I’ll be using to help manage the Blender Week Day Challenges. You can find the project page here
At the moment I’ve add Challenge, Entry and Item classes and it can now load and save challenge data in xml format.
The next step will be added a ChallengeManager class to manager the insertion of data and automatic posting to www.blenderchallenge.com and blenderartists.orgContinue Reading »
I’ve been creating automatic documentation for the Entertainer project using Doxygen.
As you may know, Entertainer is written in python, so what follows is a short guide to commenting python code in a format that Doxygen will pick up.
I was recently generating some documentation from the Entertainer source code and decided to share how I managed to do it.
I’m assuming python 2.4 is installed on your system.
First install doxygen and graphvizContinue Reading »
From the website:
“Entertainer aims to be a simple and easy-to-use media center solution for Gnome and XFce desktop environments. Entertainer is written completely in Python using object-oriented programming paradigm. It uses GStreamer multimedia framework for multimedia playback. User Interface is implemented with Clutter UI-library, which allows sleek OpenGL animated user interfaces. Entertainer also uses other great projects like SQLite, pyIMDBb and iNotify.
The ultimate goal of the project is to create the best media center solution available for any platform. This means that Entertainer should be the best looking, most easy to use and most feature filled media center solution available. Not the easiest goal to achieve. It’s a long way, but we have a good start here!”
My first job is to add opml import capability to the rss feed reader and allow the option to sync with liferea. I’ll be checking out any bugs relating to this as well.Continue Reading »
I’ve just finished coding a python script for Blender 2.44 which imports all the jpg files in a folder into planes in a scene.
This can be used to import a number of reference images into a scene as an aid to modelling.
* imports any pictures with the extension .jpg
* resizes planes to 2 blender units per 1000 pixels
* implements changes proposed by migius on blenderartists to work on windows xp
* can choose any extension
* can choose the scale
* cosmetic changes
Version 1.2: importrefimages12.pyContinue Reading »