Introduction to Scripting in Softimage
To use a scripting language with Autodesk Softimage, you must first install the scripting engine for that language. Softimage only supports ActiveX-compliant scripting languages. ActiveX is a technology for sharing data between programs. The ActiveX-compliant scripting languages supported by Softimage are:
• VBScript (the default)
VBScript is the default scripting language used by Autodesk Softimage. The Softimage installation automatically includes VBScript on Linux and Windows, if it is not already installed. You can also download the Windows version and obtain further documentation from MSDN.
MainWin, the Win32 emulator used to run on Linux, currently only supports version 3 of JScript. This is the version of JScript that was supported in Internet Explorer 4.
Support for error trapping (try/catch) was only added to the JScript language in version 5.
PerlScript is a version of the Perl scripting language that supports ActiveX. It is included in ActivePerl, which is available for Windows and can be downloaded from ActiveState. The recommended version for Softimage is ActivePerl-126.96.36.1995.
With PerlScript, the scripting engine does not stop on errors. You cannot terminate using Ctrl+Break.
Python ActiveX Scripting is a version of the Python scripting language that supports ActiveX. Mark Hammond’s script extensions for Python are required for Python ActiveX to work in Softimage and are bundled in a module called pywin32 (formerly called win32all or win32com).
Softimage installs Python and the pywin32 extensions automatically:
• For Windows the recommended version of Python is v2.6.4.
• For Linux the recommended version of Python is v2.5.2.
• The recommended version of the pywin32 extensions for both Windows and Linux is v214.
If you want to use a different version of Python in Softimage than the one that was installed with Softimage, you can set the location of the Python directory to use with the PYTHONPATH user preference. See the user guide for details.
For more information on using Python with the Softimage SDK, check out the Issues with Python chapter.
Autodesk Softimage 2011