Why Doesnt the Python ActiveX Scripting Language Appear in the Preferences Dialog Box?

Sometimes when you open File > Preferences > Scripting > Scripting Language you get a choice of only the following languages:

 

If you want to use Python ActiveX Scripting but it does not appear in this list, it may be because the Python ActiveX Scripting engine hasn’t been registered yet.

If you are using Windows, you should download and install Python (available from www.python.org). You should also install pywin32 (formerly called win32all or win32com), Mark Hammond’s script extensions for Python (available from sourceforge.net/projects/pywin32/).

If you are using Linux, see the instructions under Installing Python for Linux.

If both Python and win32all are installed and you still do not see Python in the Script Language Preferences drop-down list, you can try manually registering the Python ActiveX Scripting engine by running the following script and then restarting XSI:

%PythonPath%\Lib\site-packages\win32comext\axscript\client\pyscript.py

Installing Python for Linux

As of XSI v4.0, Python comes with your XSI installation for Linux. However, if you want to update your Python engine you can download a new version (free) and install it following these instructions:

1. Download the version of Python you want from www.python.org.

2. Build, install and configure Python:

- Use the following config option:

       --enable-shared

- You can also possibly use a custom prefix.

- Execute ldconfig to make the Python .so available.

Here is a command-line example of a typical build-to-configure process:

       % ./configure --enable-shared 
       % make 
       % sudo make install 
       % sudo /sbin/ldconfig 

3. Make sure that /usr/local/lib appears before $XSI_HOME/Application/ bin in your search path (/etc/ld.so.conf or LD_LIBRARY_PATH).



SOFTIMAGE|XSI v5.11