Instantiating Classes and Plug-ins
 
 
 

Many classes derived from Node, including plug-ins, do not provide a public constructor. Instead these classes are supposed be instantiated using the template global function CreateInstance().

In the case of an abstract class with multiple descendants, then Mudbox will the method Kernel::PreferredDescendant() will be used to decide upon a specific concrete class to instantiate.