Exposing MAXScript Functions

The list of OLE Automation-callable MAXScript functions is defined using the registerOLEInterface() function. It takes an array of functions to be exposed:

registerOLEInterface <array_of_fns>


For example:

registerOLEInterface #(get_object_count,



Each time you call this function, it replaces the current set of exposed functions with the new set -- it does not add to the existing set. The functions you expose should limit themselves to passing and returning only the following data types: integers, reals (floats), currency, string, boolean and empty (undefined).