What is a Mixin Interface?

MAXScript FAQ > Syntax and Terminology > What is a Mixin Interface?

A Mixin Interface provides a way for a plug-in to expose some of its functionality for use by other plug-ins or MAXScript.

The notion of "Mixin" refers to the idea that the interface is a sub-class of the plug-in class and thus "mixed in" with it.

There are two ways to access methods of a Mixin Interface:

When using the second approach, properties and methods exposed by a Mixin Interface can be accessed directly as properties and methods of the object exposing the Interface without explicitly providing the name of the Interface, like in $MyObject01.someMethod 1 2

MAXScript will search for the property or name in the object itself and in all its interfaces. If multiple interfaces of an object expose properties or methods with identical names, specifying the Interface explicitly will resolve such naming collisions.