Hi,
first of all: If you want to use threads, you should use c4d.threading.C4DThread
and not Pythons builtin thread type or weird things might happen. Also note that threading comes with certain limitations:
For all threaded functions it is forbidden to:
- Add an event.
[...]- Change the structure of objects attached to the document.
[...]- Create undos.
I am also not quite sure what the purpose of your thread is, since you are loading into the active document. If you want to "load in the background" you will have to use a temporary document. But for loading just one file I do not see any performance benefits, since you have to merge that temporary document into the active document at the end.
Cheers
zipit