Jump to content
RustyMac2020

What is the difference between npoints() and point()?

Recommended Posts

Hi all 

I'm currently using VEX to do some scripting, I was just wondering what the difference between these two functions 'npoints()' & 'point()' were?

Share this post


Link to post
Share on other sites

npoints() gives you the number of points the input have.

point() can give you an attribute value from a specific point.

If you write the function in vex you can put your mouse over the function and hit f1, then a helpcard will tell you what it does.

  • Thanks 1

Share this post


Link to post
Share on other sites
34 minutes ago, ThomasPara said:

npoints() gives you the number of points the input have.

point() can give you an attribute value from a specific point.

If you write the function in vex you can put your mouse over the function and hit f1, then a helpcard will tell you what it does.

Hi I just checked it out, it says that npoint() function Returns the number of points in the input or geometry file. and the point() function reads a point attribute value from a geometry. Another question I wna ask with The point() function, is what would be a attribute value of a specific point? do point hold attributes? and if so what are they?

Kind Regards

Ahme.B

Edited by RustyMac2020

Share this post


Link to post
Share on other sites

Hi RustyMac2020, 

may I give you a polite suggestions to: 

- give your threads a correct descriptive titles (like the one above instead of the original "What is the difference?")

- avoid asking about things directly described in relevant documentation (like what does a given function)

- avoid collapsing many unrelated topic into single thread

- finally start using spell checker

 

 

These are not to make life of a novice user harder, but to lower noise level and make public forum more useful.

Thanks!

btw documentation chapter about attributes (what they are and so forth):

https://www.sidefx.com/docs/houdini/model/attributes.html

  • Like 3

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

×