RustyMac2020 Posted November 12, 2019 Share Posted November 12, 2019 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? Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted November 12, 2019 Share Posted November 12, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
RustyMac2020 Posted November 12, 2019 Author Share Posted November 12, 2019 (edited) 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 November 12, 2019 by RustyMac2020 Quote Link to comment Share on other sites More sharing options...
symek Posted November 12, 2019 Share Posted November 12, 2019 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 3 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.