Ok, if we're looking at an animated emitter route I've created the following.
Circle emitter:
PositionY = 4
Res = 2
Surface Tension = 1000 (yup, a HIGH value)
Speed = Animated:
Frame 0 value = 2
Frame 4 value = 2
Frame 5 value = 0
Frame 9 value = 0
All keys = Linear
Keys ~ Last Node Behaviour = Loop
Gravity Daemon
Plane
PositionY = -4
-----------------------
I'm struggling to get to grips with scripting but what I wanted to do was, when the particles collide with the plane their surface tension drops to 0.0.
I've done the following but can't get it to work on a per-particle basis. I can see that it's wrong but can't figure out why.
REALLY bugging me that I can' figure it out. I've wanted to post this for a while but kept going back to the script and trying new things. Bah!!
I've tried:
*This one changes the whole emitter, not each particle.*
Code:
def onSimulationStep():
emitter = scene.getEmitter("Circle01")
colParticlesList = emitter.getParticlesColliding()
for eachParticle in colParticlesList:
emitter.setParameter("Surface Tension", 0.0 )
*This one, well, I know what this one does.... Nothing*
Code:
def onSimulationStep():
emitter = scene.getEmitter("Circle01")
collision = emitter.getCollidingObject()
particle = emitter.getFirstParticle()
while (particle):
if (collision):
emitter.setParameter("Surface Tension", 0.0 )
particle = emitter.getNextParticle()
_________________
Otuama - Vimeo'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi