0
$\begingroup$

I imported several simulations i made in realflow and maya, because i found out that blenders wetmaps are extremely faster than other packages and i need to make a lot of them.

I'm completely new to blender but i can grab the hang of it quickly, already have everything setup, i just need to change each particle size randomly depending of their id, i'm thinking with python, in maya i already made similar things, yet i still haven't learned any commands for blender yet, can someone help me please?

Also, would it be possible to delete particles depending on their speed and/or age?

Everything is already cached from the other softwares and i'm just importing them to blender using the realflow addon.

i'm thinking something like this:

particleSystem="nameOfParticles"
particlesList=particleSystem[particles]
frames=xrange(1,100)
for f in frames:
    currentFrame(f)
    for part in particleList:
        randomSeed(part.id)
        setAttribute(part.size,rand(0,1))
        if (part.velocity>5) or (part.age>2):
            delete(part)
$\endgroup$
0
$\begingroup$

If you want to change the size of a particle randomly you can go to the physics tab in a particle system and change the random value.

enter image description here

If you want to look at the operators in python you can go to this link

Python blender reference

If you want to delete a particle based on their age you can change the lifetime of the particle in the emission tab

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ yea i supposed, yet those attributes are greyed out and disabled, because its a cached simulation done in other software and just imported to blender, i need a way to do it at playback time using the info already cached $\endgroup$ – NightmaresInd Jan 12 '17 at 22:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.