Copy particles to emitter not working

Post Reply
User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Copy particles to emitter not working

Post by Otuama » Sun Jun 16, 2013 5:06 pm

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.
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: Copy particles to emitter not working

Post by LuisMiguel » Mon Jun 17, 2013 2:40 pm

Hi Otuama,

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.

User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Re: Copy particles to emitter not working

Post by Otuama » Mon Jun 17, 2013 4:27 pm

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):

Image

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).

Image

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

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: Copy particles to emitter not working

Post by LuisMiguel » Wed Jun 19, 2013 10:54 am

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.

Post Reply