THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/10/2006 at 18:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.603
Platform: Windows ;
Language(s) : C++ ;
---------
Hey Guys,
I've started writing a plugin for Thinking Particles. I'm having a difficult time right now figuring out how to allocate the same number of objects as the total number of particles. I originally thought I would just create an array of null objects == to the NumParticles(), but array indices must be constant. I don't want to allocate an arbitrary number of null objects hoping that it will be larger than the number of particles in any scene that the plugin is used (a huge waste of memory). So in one scene if the total number of particles will be 150, I would like to generate 150 null objects. In another scene if the number of particles is 1000, I would like to create 1000 null objects and so on. I hope this makes sense. Any help is always appreciated.
Josh