Particle Panel At Runtime

Does anyone know if its possible to run the particle panel while running your own game? Some way to tell it to generate particles at a certain position or node path and then get the same external window to adjust the parameters?

I don’t know why you couldn’t do this, in principle–there’s no real difference, in an environment like Python, between “runtime” and “development”. So you could create a ParticlePanel at any time during your program’s execution. (You can import the class from direct.tkpanels.ParticlePanel.)

I’m not sure if the ParticlePanel has an API to allow you to load a particle effect programmatically, though, but the ParticlePanel is just Python code, of course, so you could add that API yourself.

David

Thanks David for the answer.