Building PyQt for Maya 2012 ( Linux x64 )

                   

SIP needs to be built prior to building PyQt.

Download SIP from here

Maya 2012 uses Qt 4.7.1.

Download it from here

Download PyQt from here

First step is to build qt from source. Extract the tarball and CD in to the directory

./configure

While running configure, if you get the following error

Basic XLib functionality test failed!

You might need to modify the include and library search paths by editing

QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/anoop/apps/sources/qt-everywhere-opensource-src-4.7.1 /mkspecs/linux-g++-64.

install teh libXext development package. I used zypper to install the package from the web

zypper install xorg-x11-libXext-devel

executing the configure after the installation gave the following error

cannot find -lXrender

this was happening because configure couldn’t find libXrender.so. This can be fixed by creating a symlink to libXrender.so.1 in the /usr/lib64 directory

ln -s /usr/lib64/libXrender.so.1 /usr/lib64/libXrender.so

After successful configuration run the following to install Qt to /usr/local/Trolltech/Qt-4.7.1 directory

make

make install

Building SIP

Extract the SIP zip archive to /home/username/SIP

cd /home/username/SIP

After setting the variables, run the following

/usr/autodesk/maya2012/bin/mayapy configure.py

make

make install

Building PyQt

Extract the archive to /home/username/PyQt-x11-gpl-4.7.4

cd PyPyQt-x11-gpl-4.7.4

/usr/autodesk/maya2012/bin/mayapy configure.py -q /usr/local/Trolltech/Qt-4.7.1/bin/qmake

make -j4

make install

PyQt4 for Maya2011 on Windows XP x64

Finally got some time to get back to python after a long break, only to find that I don’t have a working copy of PyQt4. Instead of spending time on google trying to figure out whether anyone has decided to share a copy of PyQt built against Qt4.5.3, decided to build one myself. Having Windows SDK already installed on my XP proved out to be handy since the Visual Studio version I was running was still 32-bit one. Downloaded SIP4.12 source and Qt4.5.3 SDK and within few seconds the PyQt4 module was successfully added to the site-packages.

Thought of sharing the build for those of you who are planning ahead to design awesome GUIs in Maya.You may download it here

Qt 4.5.3 SDK for Maya 2011

My search for a compatible version of Qt SDK for Maya 2011 Hotfix3 x64 ended up with a few results which I thought of sharing with you guys in case you need any. Maya 2011 Hotfix 3 uses Qt 4.5.3 to draw the interface. Below are a list of links to Qt 4.5.3 for Linux, Mac OS and Windows.

Qt 4.5.3 OpenSource Edition SDK

Qt 4.5.3 SDK for Open Source C++ development on Windows [178Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2009.04.exe

Qt 4.5.3 SDK for Open Source C++ development on Linux/X11 32-bit [275Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2009.04.bin

Qt 4.5.3 SDK for Open Source C++ development on Linux/X11 64-bit [353Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86_64-opensource-2009.04.bin

Qt 4.5.3 SDK for Open Source C++ development on Mac OS [442Mb]

http://get.qt.nokia.com/qtsdk/qt-sdk-mac-opensource-2009.04.dmg

Qt 4.5.3 OpenSource Edition Framework Only

Qt 4.5.3 for Open Source C++ development on Windows [166Mb]

http://get.qt.nokia.com/qt/source/qt-win-opensource-4.5.3-mingw.exe

http://get.qt.nokia.com/qt/source/qt-win-opensource-src-4.5.3.zip

Qt 4.5.3 for Open Source C++ development on Linux/X11 [120Mb]

http://get.qt.nokia.com/qt/source/qt-x11-opensource-src-4.5.3.tar.gz

Qt 4.5.3 for Open Source C++ development on Mac OS [132Mb]

http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.5.3.dmg

http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.5.3-debug-libs.dmg

http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.5.3.dmg

http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.5.3-debug-libs.dmg

http://get.qt.nokia.com/qt/source/qt-mac-opensource-src-4.5.3.tar.gz

Transition to Open Source (read openSUSE)

Finally got my linux distro equipped with full functionality to resume my work on open source platforms. Configuring the network using YaST was just a piece of cake with a really interactive UI that included every information for even the novice user to get the job done. This was the third time I was installing SUSE within a span of 6 months and I had switched back to good old windows every time because of the lack of fully functional drivers for my Radeon 4200. But this time the ATI repository came handy. Last two times I had tried the conventional  ”windows-user style“: Download drivers>run the file>and there you go, which proved out to be the most stupid thing on the earth to do. I had just neglected the need for a xorg-x11-server which I finally downloaded using YaST.

The next thing was to get the X Window display driver for the ATI graphics accelerators and also ATI “fglrx” driver kernel module. Both packages could be found at:

http://www2.ati.com/suse/11.3/

After successful installation of the drivers the configuration can be set using the command aticonfig –initial which will save the xorg.conf with the new settings. Display modes can also be specified optionally using the command aticonfi –resolution=0,1280×1024,1024×768. I was planning to go with 1280×1024 resolution by default which left me with the need to specify just these two display modes.

The drivers can also be downloaded from:

X Window display driver for the ATI graphics accelerators

ATI “fglrx” driver kernel module

The next requisite was a screen capture tool that would help me prepare demos of the tools and also let me compile future tutorials which I intend to share in this space. Got hold of a simple and yet powerful screen capture App called recordMyDesktop. It provides two frontend options, one built on Gtk and the other on PyQT4. My love for Qt urged me to go for the Qt-based one.

Here is a screenshot of the recordMyDesktop App

The packages can be downloaded here

recordMyDesktop

qt-recordMyDesktop

recordMyDesktop-gtk

Project Manager #2 – Adding New Assets

The above video demonstrates the procedure for adding new assets to an existing project directory tree created using MADAM. All the assets of the selected project can be accessed from the Assets tab in the Project Manager module.

The asset tab provides different options for managing the asset files of the project.The asset section has been categorized in to three types: Character, Bg, and Props. The category selection can be changed using the CATEGORY combo box. This will list all the asset names under the selected category. Each asset folder will contain the different file types Model, Texture, Rig and Render scene files.

New Assets can be created using the Add New Asset Dialog which can be accessed by clicking the Add button at the bottom left corner of the Assets tab

The Add New Asset dialog has a text field for entering the asset name and also a radio button group for specifying the asset category. Clicking Apply adds the asset in the specified category folder. Once the asset folder is created files can be added using the Manage button in the Assets tab. The Manage button provides the option for adding, updating, deleting and locking files.

Adding an asset file to the particular asset folder imports the specified file in to the repository. The File Info button in the Assets tab lists the revisions of the selected file. Clicking the File Info button brings up the MADAM Revision Log as shown below.

The selected file version can be checked out using the Checkout button in the Revision Log. This will open up a file browse dialog box where the user can select the path where the Work Copy should be saved.

Project Manager #1 – Adding New Projects

The above video demonstrates the procedure for setting up a new project using the Project Manager Module in MADAM. The procedure involves choosing a network location for setting up the project directory tree. After choosing the location new project can be created using the Create New button in the Project Manager Dialog.

This brings up a dialog as shown below, where the user can specify the various attributes of the project including the Project Name, Number of Sequences, Sequence Name Padding. After specifying the attributes the Directory Tree can be created using the Create Project Directory button.

Below Screenshot shows the Project Directory Tree

The next step is to create an SVN repository for file revision control. The repository can be created using the Create Repository button in the Project Directory Creator dialog.This brings up the SVN MANAGER dialog as shown below.

The Server IP field is for specifying the machine IP in which the Subversion Server is running. The Check button can be used to know the status of the Server, whether its running or not. Once the server status is confirmed, the Browse button can be used to browse to the Project Directory. Select the project name from the combo box to get confirmation dialog asking whether Repository should be selected for the selected project or not. Select OK to create project repository.

Bee in the Bonnet by DNA INC BATCH I

This is the first High-Definition short film from batch I of DNA Inc. And also my first assignment as Mentor since I got associated with DNA Inc. The task handed over to me was that of supervising and reviewing the asset building process and also setting up an efficient pipeline at par with the one available in high-end production houses.

The execution of the project in the scheduled time frame was indeed a challenge with 70-plus shots spanning across a duration of 4 mins. But I am glad that the effort was paid off in the end with the successful completion of the film as scheduled and also an amazing portfolio for every student who was involved in project.

The film was done entirely in Maya 2009 and rendered using Maya Software Renderer.