Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5750

The Class ParticleSystem in RhinoCommon's Problem or bug

$
0
0

I using python to create an custom particlesystem extend from ParticleSystem in Rhino,
when I using Remove method to remove the particle in my custom particlesystem when the particle was exipre, However it not work, and the size of particle in particleSystem was not decrease . the python code is follow:

#self is reference to custom particle
    def Update(self):
        for p in self:
            if not IsDie():
                p.Update()
            else:
# it not work , the number of particle in particlesystem not decrease
                self.Remove(p)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5750

Trending Articles