tomoyaorwoff Posted July 9, 2020 Share Posted July 9, 2020 I got an array of point numbers int searchPts[] = [0, 1, 2, 3] that I want to pass into the pcfind function as a ptgroup so it only operates on those points. How do I convert this to a string of "0 1 2 3"? Is this how I should even approach it? pcfind(<geometry>geometry, string ptgroup, string Pchannel, vector P, float radius, int maxpoints) Thanks! Quote Link to comment Share on other sites More sharing options...
Librarian Posted July 9, 2020 Share Posted July 9, 2020 maybe It Helps https://www.sidefx.com/forum/topic/56694/?page=1#post-254029 https://tosinakinwoye.com/2017/01/23/houdini-vex-snippets/ 1 Quote Link to comment Share on other sites More sharing options...
sadhu Posted July 10, 2020 Share Posted July 10, 2020 string test = ""; int searchPts[] = { 0,1,2,3 }; foreach (int i; int num; searchPts) { test += " "+itoa(num); } s@check = test; try this. 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.