Rose

i create  nparticle emitter
then i create  two polygon mesh and make them goal for the nparticles

then i create  attributeTransfer for weight and create a boundingObject

 

i try to make this :

 

when i move the boundingObject and intersect with the nparticle i want to change the pparticle Goal Weight for each particle just In the place of the intersection

 

hope someone help me :)

Rose

i try to connect the Out Weight pp and Goal Weight 0 pp or Goal pp or Goal Weight

I don't know why it's not connecting

 

please help :(

Reply 0 0
Jostein
Hey Rose,

Connecting particle is not as straight forward for some reason and you have to use expressions and some trickery to hook them up. 

As for your problem I figured out one way of making it work even though I'm not sure it's the best:

Connect:
particleShape.worldPosition >  pointCloudToCurve.inArray
pointCloudToCurve.outGeometry > attributeTransfer.inGeometry

Set  attributeTransfer to ouptup weight
Add goal weight PP to particle

Add runtime expression to nParticleShape.goalWeightPP:

nParticleShape.goalWeightPP  =  0.001 + attributeTransfer.outWeightPP;

(found I had to add 0.001 to the value to make the particles keep their original position...not sure why)

Add two bounding boxes to your attributeTransfer, one around the goal geo and one for intersection of particles. 

Now you have to play around with the weight values between the two bounding objects. The bounding object surrounding the geo probably have to cover a distance around the actual geometry in order to "catch" the particles (unless your weight for that bounding object is set to 1).

You could alternatively drop the "intersection" bounding object if you wanted to use the goal geo bounding object instead but that means this needs to be quite big, depending on your setup, in order to cover the goal geo and the particles .

Hope that makes sense...adding a scene as well (2012). 

As I said, not sure if it's the best way but it works ;)


Reply 0 0
Jostein
Did I attach the scene? It doesn't show up for me...trying again in this post
Reply 0 0
Rose

thank you thank you Jostein

It works but the bounding objects have to be big :)

A file attached

 

 

Reply 0 0
Rose

looooooooooooooool in the same time

Reply 0 0
Jostein
yep, there you go. Nice example  ;)

As I said, there may be other and better solutions but this is what came to mind first.
Reply 0 0
Reply