Akabane Posted April 15, 2010 Share Posted April 15, 2010 (edited) 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 April 15, 2010 by Akabane Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted April 15, 2010 Share Posted April 15, 2010 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 Quote Link to comment Share on other sites More sharing options...
Akabane Posted April 15, 2010 Author Share Posted April 15, 2010 Oh man, thanks for the example. Yeah, both formulas work, but found out that my problem was not having the source spline "closed", it was open. This way the source was overlapping 2 particles at the same point Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.