Diphon Posted October 17, 2012 Share Posted October 17, 2012 Hello, I'm still super new to houdini and expressions. I'm trying to set up a tracer rig that will only emit 20 shells. Each round is emitting a spiral smoke trail so I can't use the max particles function on the POPnet itself. I was thinking along the lines of setting the constant activation to 1 if the shells group contains less than 20 points. I'm just not quite sure how to write that out. Any help you folks can give would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
woodenduck Posted October 17, 2012 Share Posted October 17, 2012 If I understand you right, you could use 'pointlist' expression to return a list of all the points in a particular group, you will need to wrap that up in an 'argc' expression to count those points. Then you can pop all of that in an 'if' statement to return a true or false depending on the number of points. It would like this - if(argc(pointlist("your_node_path", "your_group_name"), < 20 , 1, 0) 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.