I read somewhere that installing PyQtForSoftimage could be difficult, so I gave it a try. I didn’t have any problems.
For my test, I installed PyQtForSoftimage in Softimage 2014 SP2, using Python 2.7.3 and pywin32 218.
Here’s a recipe that will work with Softimage 2014 and earlier. But if you’re using Softimage 2014, you can skip the part about using the system Python. Instead, use PYTHONPATH to point to folder where PyQt4 is installed (hat tip: Tim C).
On-sentence-summary
You need to switch from the Python installed with Softimage to the system Python (and pywin32), install PyQT, and then install the PyQtForSoftimage addon.
General Recipe
- Download and install Python 2.7.x (Note that Softimage ships with Python v2.7.3).
- Download and install pywin32 (Softimage ships with pywin32 217).
- In the Softimage Scripting preferences, clear the Use Python Installed with Softimage check box. Then restart Softimage.
Or edit your prefs file (%XSI_USERHOME%\Data\Preferences\default.xsipref) and add this line: scripting.sipython = False
- Check that Python is working in Softimage. In the script editor, run a Python snippet like this: Application.LogMessage( “Hello World” )
- Download and install PyQt.
- Download (right-click and then click Save As) and install the PyQtForSoftimage addon.
- Check that everything is working. Open the Plug-in Manager, find PyQtForSoftimage, and run some of the examples.
I found that the ExampleDialog and ExampleSignalSlot examples did pop up dialogs, but the Log Text button didn’t log anything to the history log.
Softimage 2014 Recipe
- Download and install PyQt.
- Set the PYTHONPATH environment variable to point to the location of PyQt4. You could do this in setenv.bat, or in the System environment variables.
- Download (right-click and then click Save As) and install the PyQtForSoftimage addon.
- Check that everything is working. Open the Plug-in Manager, find PyQtForSoftimage, and run some of the examples.