Moray Plugin SDK Documentation
This release of the Plugin SDK can be used by Moray V3.5 (Build 9065) and later.

Scene Interface Files Interface Menu Interface Import Interface
Export Interface Object Interface Controller Interface External Interface
Data Structures C++ Support Compiler Settings

What's New

Export Interface

The Export Interface allows the plugin to easily add an menu item to the Export submenu of the Files menu and to react to the activation of this menu item to export the scene. Mostly this will be in conjunction with the Scene interface, so that the scene hierarchy can be traversed.

Reference List of Functions

By Function Group Alphabetically



The function ExportFile is called when the user selects the Export menu item associated with this interface.

    long WINAPI fnExportFile();

Return Values


should be returned if the export was successful. Moray currently ignores the return value.


The plugin is free to use any other interfaces to accomplish its export. Usually one would expect the use of the Scene interface to create objects and maybe the Object interface if a custom object needs to be supported.

Moray adds an entry to the Export popup of the Files menu with the text specified in the achExportName field of the interface and calls this function when that menu item is selected. Note that the menu items cannot be disabled or checked.