Jump to content
garf

VEX: arrays and such

Recommended Posts

Hiya,

I think what I need to do is compare an array of all the ids in the current frame with all the ids of the previous frame - and from that determine which have been killed off and where there position was before they died.

I guess I can do this in vex with arrays and some foreach looping - can someone point me in the right direction as to how I would go about this?

I figured this would build my array but it grinds houdini to a halt:

i[]@myarray;
for(int i=0; @numpt; i++)
{
append(@myarray, i);
}.

Share this post


Link to post
Share on other sites

You missed the condition... i<

i[]@myarray;
for(int i=0; i<@numpt; i++)
{
append(@myarray, i);
}

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

×