Jump to content

Adding to groups and using If Blocks


Recommended Posts

Good morning,


I have an object scattered with points, using a point cloud these points are collected making a spreading noise. I want to add these into a group however the If block node is now different and not sure of the use. Maybe there is another method of doing what I want instead of using this so any information would be appreciated.


I have attached a file of the scene so far.


Thank you in advance,





spreading to groups.hipnc

Link to comment
Share on other sites

  • 1 month later...

You could use the snippet node entirely instead of the if node. You could lay down the snippet node plug the pcnumfound node into it and say if(pcnumfound > 0) { @group_hello = 1; }

however this won't work since pcnumfound is only giving you the number of total points in the radius not the actual point numbers. The only way to do it and it be perfectly accurate would be to do all of your pcopens in vex in a while loop but those are more complicated especially for what you are doing. 

You can simply have a wrangle after your solver node in sops that says "if(@Cd.r > .1) { @group_hello = 1; }

that is the less accurate way but it is perfect for what you are doing. 


Edited by Tyfx567
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.

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