Custom nParticle updater and nucleus solver registry

Custom nParticle updater and nucleus solver registry

jonathan_khao
Enthusiast Enthusiast
646 Views
1 Reply
Message 1 of 2

Custom nParticle updater and nucleus solver registry

jonathan_khao
Enthusiast
Enthusiast

Hi, 

I made simple C++ plugin to set nParticle positions from an input vector array, where I just want to set nParticle positions, no nucleus evaluation, no solve or whatsoever. 

It's based on the testNsolverNode example, where I just overwrite the nParticle's currentState attribute with the input vectorArray values. It is working but the console gets filled with "Trying to add a duplicate id to the nucleus solver registry"  messages. 

 

Is there a way to fix this ? I didn't find any documentation on the issue, and even after removing all nucleus nodes from the scene, I still get spammed with the same message. 

 

Or ... would there be another way to do this ? I'll be working with high particle count so having no solver computation between frames is important (and I do need nParticle outputs like meshing). 

 

Any help would be much appreciated !

 

 

 

0 Likes
Accepted solutions (1)
647 Views
1 Reply
Reply (1)
Message 2 of 2

jonathan_khao
Enthusiast
Enthusiast
Accepted solution

Managed to get around the problem by using the positions and cacheArrayData attributes of the nParticle node. This properly updates the nParticles without sending any warning messages. 

0 Likes