Jump to content
Sign in to follow this  
TheScarecrow

Number of points on second input

Recommended Posts

Hello guys.
Could anyone help me with syntax. Im relatively new to VEX.  I need to get total number of points of geometry that connected to second input of wrangle. I tried something like

int maxp = @opinput2_numpt; 

but it always returns 0.
Would appreciate help.

Share this post


Link to post
Share on other sites

It should be i@opinput1, if you want the second input, but doesn´t work either. However this does:

i@maxp = npoints(1);

Also in geometry spreadsheet go to detail and click on "intrinsics". There are lots of hidden attributes you can use, eg.

i@maxp = detailintrinsic(1, "pointcount");

 

Edited by konstantin magnus

Share this post


Link to post
Share on other sites

The term is case sensitive. so you need...

i@maxp = npoints(@OpInput1);

Or just use the constant as well.

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  

×