Jump to content

Accessability of the point number attribute in the VEX "point()" fucntion


Recommended Posts

Hey guys,

I've been wondering this for quite some while, but always managed to find a workaround. I am not sure if I will be able to find one this time. 

As an example:

Why does the test attribute not reflect the pointnumber attribute here? (Any input-geo with points is sufficient)

for(int i = 0; i <npoints(0); i++)
{
if(@ptnum == point(0,"ptnum",i))
i@test = 1;
}

Am I just calling the pointattribute wrong here, or is it not possible to get the pointattribute back through the point() function. What other option do I have to get return the pointattribute in a custom loop?

Thanks in advance.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...