The copy particles to emitter command doesn't seem to be working for me.
I've tried different variations but I just get errors.
Can someone look into this?
Maybe I'm being particularly thick.
Copy particles to emitter not working
Copy particles to emitter not working
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Copy particles to emitter not working
Hi Otuama,
It is working. Take a look at the image
luisM.
It is working. Take a look at the image
luisM.
You do not have the required permissions to view the files attached to this post.
Re: Copy particles to emitter not working
Hmmm, thanks. Not sure why it wasn't working for me last night. Must have been half asleep.
One thing you may be able to help me with.
I have some particles (wow):

I have a quick script that simply looks at incremental particles from the main fluid (below). It then adds those particles to the other emitter (without deleting the originals).

Is there any way I can use the copyParticlesToEmitter command in the for loop?
In my other post about particle id's, the issue I'm having with that is that when Rf gets to a new frame it deletes the particles but when it recreates them it recreates them with new id's. So, what was id#1 will be id#88 the next frame. This might make things difficult if instancing in Maya.
It may not be much of a problem but it's annoying me.
If I copy over the particles with the copyParticlesToEmitter command instead, they'll be copied over with the same id. That will make the copied particles easier to manage and will get rid of any potential Maya instancing issues.
One thing you may be able to help me with.
I have some particles (wow):
I have a quick script that simply looks at incremental particles from the main fluid (below). It then adds those particles to the other emitter (without deleting the originals).
Is there any way I can use the copyParticlesToEmitter command in the for loop?
In my other post about particle id's, the issue I'm having with that is that when Rf gets to a new frame it deletes the particles but when it recreates them it recreates them with new id's. So, what was id#1 will be id#88 the next frame. This might make things difficult if instancing in Maya.
It may not be much of a problem but it's annoying me.
If I copy over the particles with the copyParticlesToEmitter command instead, they'll be copied over with the same id. That will make the copied particles easier to manage and will get rid of any potential Maya instancing issues.
Code: Select all
New.removeAllParticles()
increment = 50
pList = []
for particles in range(increment, len(Main.getParticles()) ,increment):
pList.append(particles)
for each in pList:
getBlobParticle = Main.getParticle(each)
getBlobPartPos = getBlobParticle.getPosition()
New.addParticle(getBlobPartPos, Vector.new(0.0,0.0,0.0))
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Copy particles to emitter not working
Hey Otuama,
I don't know if it is possible to do what you want when simulating. I think you should do that in batchscript cause if you are simulating, you'll need to remove the particles before creating the new one. So, I've tested with 2 emitters, circle01 and container, and the function will duplicate the particles and the ids as well so you'll have the same ids for both emitters.
I hope it helps.
luisM.
I don't know if it is possible to do what you want when simulating. I think you should do that in batchscript cause if you are simulating, you'll need to remove the particles before creating the new one. So, I've tested with 2 emitters, circle01 and container, and the function will duplicate the particles and the ids as well so you'll have the same ids for both emitters.
I hope it helps.
luisM.