Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

Threading

Cinema 4D is a multi-threaded application that handles different tasks in different threads. Certain operations can only be performed from within the main thread. So a plugin must know its current thread context.

Both the Cinema API and the MAXON API provide tools to handle threads, create custom threads to perform multi-threaded operations.

Classic API:

  • c4d.threading.C4DThread: The base class for custom Cinema API threads. Operations can be done on multiple cores or in the background.

Examples

threading_basic

Demonstrates how to handle C4DThread from a script.

threading_testdbreak

Uses TestDBreak to define a custom condition to leave a thread.