Jump to content

Select particles every N particle, and move them along their normals?


Akabane

Recommended Posts

Hi there, is there a way to select a particle every N particles, put those into a group and then move them along their normals?

I added a hexagon (spline) and from the vertexes of that geometry i spawn particles (so they overlap every 6 particles); i need to group the particles putting each particle that spawn from a specific vertex in a group, and then move them in their normal.

well, i started with the source without velocity, using a group, and tried to group them with the rule "$PT == $PT - int($PT % 6) * 6" but it only works for the first 4 loops, then starts adding particles from other vertexes...i'm lost.

Help? :)

Thank you

Akabane

Edited by Akabane
Link to comment
Share on other sites

Well... I don't really understand your expression, so I went with something more simple.

$PT % 6 == 0

Since any modulo operation on an integer will always return an integer.

Works fine for me. I also tried your expression and it worked fine as well.

Not sure what the problem is so post your example next time. ;)

moduloAlongNormal.hip

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