ExecutionInterface Manual
maxon::ExecutionInterface is a template for a job that is executed on Cinema 4D startup.
A new class is created based on the maxon::ExecutionInterface template. In this new class one must implement the function call operator "()" to define the code that should be executed.
// This example shows a simple implementation of a custom class based on ExecutionInterface.// after Cinema has started, this text is printed to the console DiagnosticOutput ( "Hello World!" );
The new class must then be added to the maxon::ExecutionJobs registry:
// This example shows how a custom class based on ExecutionInterface is added to the ExecutionJobs registry. MAXON_DECLARATION_REGISTER (maxon::ExecutionJobs, "net.maxonexample.execution.helloworld" ) { return NewObj (RegisterHelloWorldExecution); }The code defined in the function call operator will then be executed after Cinema 4D has started and loaded all resources.