FAQ:应用程序
The following operations must only be executed from the main application thread:
For details see Cinema 4D Threads Manual .
There are multiple ways to trigger the execution of code from the main thread:
见 Core Messages Manual and BaseDocument Manual .
Other GUI systems like Qt are not supported. It is advised to only use the Cinema 4D GUI and application framework.
It is possible to handle drag and drop events in different scenarios:
To display an image in a GeDialog one can create a custom GeUserArea that simply draws the image. Another solution is to use a bitmap button GUI widget ( BitmapButtonCustomGui ).
One can implement several "Draw" functions of various plugin types to draw in the viewport. See Draw Manual . One should only draw in the viewport using the BaseDraw class, see BaseView / BaseDraw Manual .
Additionally the SceneHookData plugin type allows to change how objects are drawn by implementing SceneHookData::DisplayControl() .
Files can be accessed using file streams. See InputStream Manual and OutputStream Manual .
Media files are handled using media sessions, see Media Sessions Manual .
A file can be downloaded using a InputStream. See InputStream Manual .