Developers / Connecting Blender 2.5 to DrQueue



  • Blender 2.5 uses Python 3.1 which is incompatible to Python 2.x code
  • easy way of installation is required for users


  • The following package installation methods apply to Macports on Mac OSX.

Making DrQueue Python bindings compatible with Python 3

  • install Python 3.1
    sudo port install python31
  • install new version of Setuptools for Python 3 (see
    curl -O
  • SWIG with support for Python 3 (use swig version > 1.3)
    sudo port install swig swig-python
  • fix python directory in DrQueue sources
    cd ~drqueue-git-clone/python
    patch -p1 < python_3.1_bindings.patch

Install Blender 2.5 beta

  • taken in short from
  • checkout Blender sources
    cd ~
    mkdir blender-svn
    cd blender-svn
    svn checkout
  • checkout dependencies
    mkdir lib
    cd lib
    svn checkout
  • configure Blender
    cd ~/blender-svn/blender
    cp config/
  • edit
  • build Blender
    python scons/ -j 2

Build Blender 2.5 extension

  • see ~/blender-svn/build/darwin/bin/ as an example
  • basic functionality:
    • create job through render controls
    • give feedback about job status (poll job status on master)
  • properties to recycle:
    • render mode (image or animation)
    • dimensions (output resolution, number of frames, start frame, stop frame)
    • extra options (anti-aliasing, layers, motion blur, shading)
  • new properties:
    • job name
    • status indicator
    • start/stop button

Install DrQueue Blender 2.5 extension

  • build and install new Python 3 bindings
    cd ~drqueue-git-clone/python
    python3.1 build
    sudo python3.1 install
  • install DrQueue bindings module into Blender's Python instance
    cp -rv /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/\
    site-packages/drqueue-0.64.3-py3.1-macosx-10.6-universal.egg/drqueue ~/blender-svn/\
  • install DrQueue Blender plugin (yet to be written)
    cp ~drqueue-git-clone/contrib/Blender/ ~/blender-svn/\

python_3.1_bindings.patch Magnifier - python_3.1_bindings.patch (1 KB) Andreas Schröder, 04/06/2010 12:30 am