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, Mudbox will call the method Kernel::PreferredDescendant() to decide which concrete class to instantiate.