Jump to content
Sign in to follow this  
chrisdunham95

Simple VEX/Houdini array question

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×