MotionBuilder C++ API
 
 
 

MotionBuilder C++ API

The MotionBuilder C++ API is contained in the Open Reality SDK (ORSDK). This C++ API provides access to MotionBuilder's native user interface tools, as well as most of the application's functionality. To run a C++ program in MotionBuilder, its code must be compiled as a Dynamically Linked Library (.dll) and placed in MotionBuilder's plugin directory. At startup, MotionBuilder loads these .dll files and executes them as plugins.

For more information on getting started with C++ and MotionBuilder, including how to set up a Visual Studio project, see Using C++ with MotionBuilder.

Why would I want to use C++ with MotionBuilder?

For tasks which require high computational performance, C++ code is generally better suited than Python code.

In terms of the MotionBuilder SDK, more classes and functions are exposed in its C++ API. For example, custom device as well as manipulator creation is only available through the Open Reality SDK.

Another advantage to using the C++ API is that it can invoke Python scripts. Conversely, Python scripts cannot execute C++ plugins in MotionBuilder.