Hello @ferdinand,
thank you again for this very detailed and helpful reply!
I tried both methods, allocating beforehand and like the previous setup, just have it after the ParallelFor altogether.
Both worked, although allocating beforehand introduced some weird flickering in the particles and was (at least it feels that way) more unstable.
Which is why I opted to go for the second solution as with some exstensive testing it didn't seem to cause any issues.
For anyone maybe reading this in the future and having the same issues:
Do not allocate the particle group inside the plugin but use a link field and have the user handle the particle group creation inside c4d, that solved a lot of weird behaviours and seemed to work better/more stable. (at least in my not so intended usecase)
I will mark this thread as solved, as it works now and I can fix the main-thread issue as well without too much trouble.
So thank you very much for your quick and very detailed replies!
Best Regards,
Florian