Realflow and PyQt4

Scripting with Python opens a lot of possibilities in RealFlow but if we include PyQt4 module we are increasing the functionality to create scripting with interface in Python and QT. In order to load the PyQt4 inside of Realflow we need to download Python 2.6 (32bits) and PyQt-Py2.6-gpl-4.5.4-1_amd64.exe (it is 64 bits because of Realflow needs the 64bits of QT). Next, we need to add a couple of variables at environment system variables:

PATH C:\Python26\Lib\site-packages\PyQt4;C:\Python26\Lib\site-packages\PyQt4\bin
PYTHON C:\Python26

It works in Windows vista and win7. In windows xp it could have some problem because of Realflow doesn’t find the module PyQt even if the variables are defined. Here we have some example with RF and PyQt.

Download example scene



  1. Wicked one Luis.
    Well done.

    I am sure the RF community will really appreciate this one.

    Keep the good job.


  2. hep !
    for Windows XP :
    PYTHONPATH C:\Python26\Lib\site-packages

    if the system doesn’t find the module, add this line of code after import sys :


  3. hi,
    i put this environment variables in my system ( Properties ‣ Advanced ‣ Environment Variables) but rf still say doesn’t find the module PyQt.
    i m on win7.

    thank for your help.

      1. Thanks for your help Luis but i dont realy understand if we need to install pyqt inside realflow folder like when we install pyqt for maya inside the python maya folder. Or must install in classic C:/python26 folder
        And last thing for the environment system variables, “Properties ‣ Advanced ‣ Environment Variables”, this is the right method ? .

        Do you try it on mac os ?

        Thanks you again and sorry for all this questions.

      2. Hey col,

        No problem. You can ask always you want ;).

        About the Pyqt, you should install the python26 as well. Keep in mind that the Pyqt will gets python commands to work, apart the pyqt commands.
        The variables issue, “Properties ‣ Advanced ‣ Environment Variables”, yes it is. You can put the variables as User or System. The variable in System will be for all users and for User the variable is for the actual user.


    1. I’m afraid there is not too much info about working with PYQT in realflow. But it should be working in the same way you use python. If the installation is fine, pyqt could be should used inside realflow without problems. Did you check this link below, didn’t you?

      If realflow doesn’t import the PYQT module, try add something like this

      pyqt = 'pyqt module folder'
      if not pyqt in sys.path:
      import PYQT

      I hope it helps.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s