Showcase customization requires Python, installed by default with Showcase. This guide offers occasional tips for using Python,
but for specific information refer to the Python reference documentation in the \python\Doc folder and http://www.python.org.
NotePython version 2.6.5 is used in the 32-bit version of Showcase.
NotePython version 2.6.2 is used in the 64-bit version of Showcase.
The Python precompiled module files (.pyo) that contain the Showcase SDK interface are located in the \bin folder.
Why Python?
Python is an interpreted, interactive, object-oriented programming language. Python lets you write add-ins for Showcase that
can be run immediately, without compiling. Python is well-suited to providing immediate frame-based responsiveness to multiple
clients simultaneously. Whether the "client" is an end-user running the application, an add-in built using the SDK local to
the running Showcase application, or a remote UI controlling Showcase from across a network (or the Web), Python ensures seamless
interaction and real-time responsiveness.
Python for C or C++ Developers
There are two possibilities for creating Python bindings to a C/C++ library:
- Wrapping (recommended): The simplest way to make use of C /C++ libraries is to “wrap” them in Python using a software development tool such as the
Simplified Wrapper and Interface Generator (SWIG). SWIG parses the C/C++ interface file or library file and generates the
“glue” code needed to call C/C++ functions from within a Python module. For more information, see www.swig.org.
NoteThe SDK itself includes C++ functions wrapped in Python using SWIG, indicated by function names beginning with aw_.
- Boost (alternative): Alternately, you can facilitate C++/Python interoperability using Boost. In this case, you must ensure a dynamic library
for Boost (C++ extensions) is installed on your system. You must also recompile your C/C++ library, specifying the Boost library
in your compile command, and ensure the new libraries will be found at runtime. For more information see www.boost.org