-heavy-

Can i pass the influence that a pointCloudField has to a specific particle to the particle or
read the value from within an particle expression to use it in the expression for some math
or further particle motion ?

and if yes. how do i do that ?

i think about something like - if the particle isnt influenced anymore -> add some gravity 

or something..

 

cheerz the
-HEAVY-

Reply 0 0
pshipkov
I don't think there is easy way to do that if given filed is specifically designed that way.
Reply 0 0
animatedfox
I am not sure if pointCloudField connects to inputForce on a particleShape, but I use other field forces to do things that sound like what you are looking for.

Every field affecting a particleShape gets connected to an inputForce[#] attribute.
So you can use that value to drive events and behavior like creating kill boxes and stuff.
What I don't think you can do is drive the inputForce value, multiplying up this value or something, which is the simplest form of what it seems like you are looking for.
But maybe you can use some other functions to do you said you want to do...add some "gravity".
This little expression creates a basic form of gravity...You would need to refine to get a true gravity force arc this is just proof of concept. And hopefully this works with the pointCloudField.

if(.age>.1&&.inputForce[0]<0.1)

{

.velocity -= <<0,.1,0>>;

}

Reply 0 0
-heavy-
yeah thx i give it a try

and surely pointCloudField hooks up to the inputForce Array... take a look at the nodeConnections,
seems like its connected like all the other fields..
Reply 0 0
David l
Regarding per particle control of fields, it is possible to control field attributes on a per particle level, as described here:
http://download.autodesk.com/global/docs/maya2013/en_us/files/Fields__Work_with_perparticle_field_attributes.htm

I usually use it to randomize forces or to trigger fields when certain conditions are met :)
Reply 0 0
pshipkov
@animatedfox
That's cool man. I should think of it. Thanks for the tip.

@ david_l
Correct, but i think this is more about controlling the field attributes than quering them. Thanks for the link anyways.
Reply 0 0
animatedfox

David,
That is an awesome tip!

Thanks so much for that...a little gold nugget hidden in the docs!!
Totally awesome.

Reply 0 0
-heavy-

yes this per particle field control is very helpful in a lot of cases, i use it a lot in the past.

for example you can have particles travelling to newton fields after a a few seconds and then to the next 1 second later and so on.

i try to catch the pfc values also now.

Reply 0 0
David l
animatedfox wrote:

David,
That is an awesome tip!

Thanks so much for that...a little gold nugget hidden in the docs!!
Totally awesome.



Yeah its a really helpfull and often overlooked feature of mayas particles, I find it to be a little buggy if one renames the fields, so i try to avoid renaming them :)

Reply 0 0
pshipkov
I just remembered that i actually have a tutorial about this on my web page:
http://petershipkov.com/tutorials/forcefields/forcefields.htm

I think the example scenes are still there too.
Reply 0 0
Reply