chrisdunham95 Posted October 17, 2017 Share Posted October 17, 2017 Hey guys soo I'm using grains within Houdini and ive been trying to write a simple expression/code/vop/vex that deletes the particles with less than 'X' amount of neighbors - which I'm finding difficult as the neighbour attribute is an integer array and theirfore I cant think of how you would get this to work? - (Ive tried myself converting the array into something else but had no luck, and ive also tried writing little expressions to delete arrays with less than 5 integers say (so less than 5 neighbors) - I could just be missing something little but if anyone has any ideas or a solution I would be really appreciative (and any explanation on how to work abit with integer arrays) Thanks guys Chris Quote Link to comment Share on other sites More sharing options...
chrisdunham95 Posted October 17, 2017 Author Share Posted October 17, 2017 Incase anyone is interested I found a solution myself within vops - Import integer array - use an array length - and output this using bind export as a float - gives you the amount of neighbors in the float value Quote Link to comment Share on other sites More sharing options...
animatrix Posted October 17, 2017 Share Posted October 17, 2017 You can also use len VEX function but both return integers. Quote Link to comment Share on other sites More sharing options...
chrisdunham95 Posted October 17, 2017 Author Share Posted October 17, 2017 6 minutes ago, pusat said: You can also use len VEX function but both return integers. Ahhh okay ty Yunus! 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.