Jump to content

Particle Stream "Activation"


Xphile1999

Recommended Posts

Hello all,

Sorry for the noob questions but I'm having a bit of trouble with some particle effects in H13.

 

I have a series of points created by a Points From Volume node, those are converted to particles.

What I would like to do, is once a volume passes over them, each particle will be affect by POP Fields (think if it as active/not active)

So my thinking was that I would use streams with an if statement in the rule, that if the particle has been affected by a volume (POP Attribute From Volume, or POP Collision) that the ingroup attrib would be set to 1.

Well, this works as long as the attributes are affected by the volume, when the volume is no longer acting upon the particle, the field no longer applies it's force.

 

So, I guess my question is, how can i set a variable that is static on a per particle basis? I would then be able to use the stream to assign ingroup=1 and have my forces applied.

 

Thanks in advance for the assist!

-Andrew

Link to comment
Share on other sites

Resolved.

Not sure why my i@hitnum was following the chain properly before but it is now. (Edit: the Accumulate hit option was not enabled)

So for the stream rule I used

if (i@hitnum > 0)

{

ingroup = 1;

}

 

also for the static vars, i found export does this well, i can assign a @Active var to each particle.

Thanks,

Andrew

Edited by Xphile1999
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...