gavotte Posted May 13, 2023 Share Posted May 13, 2023 Hi, I would like to get the number of Spheres in a Box and display them in a FontNode. question.hiplc Quote Link to comment Share on other sites More sharing options...
Atom Posted May 14, 2023 Share Posted May 14, 2023 (edited) You can use the hScript npoints() function for that. Make sure to surround the function with the backticks so the font node will evaluate the function, and not display it. Edited May 14, 2023 by Atom 2 Quote Link to comment Share on other sites More sharing options...
gavotte Posted May 14, 2023 Author Share Posted May 14, 2023 Thank you very much. I have one more question. If I want to know the number of spheres within the boundaries of a box when I animate it, how can I do that? Quote Link to comment Share on other sites More sharing options...
Atom Posted May 14, 2023 Share Posted May 14, 2023 (edited) Group the points by bounds, before you copy to points, then break off a network line and add a delete node that references the points in that group. Choose Delete Non- Selected, then have your font node reference the result of that delete instead. Which will be all the points in the box. You'd have to animate the box on the group node, however. Edited May 14, 2023 by Atom 2 Quote Link to comment Share on other sites More sharing options...
gavotte Posted May 14, 2023 Author Share Posted May 14, 2023 Thank you very much. I'll give it one try. Quote Link to comment Share on other sites More sharing options...
gavotte Posted May 14, 2023 Author Share Posted May 14, 2023 @Atom It did exactly what I wanted it to do. Thank you so much for providing the idea! 1 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.