Jump to content

How to selects a point ID using VEX?


Zetha

Recommended Posts

Thanks,

I have been able to do with the SOP nodes, but I am not able when I try using only VEX.

 

When I type:

if (@ptnum = 56) {
    v@P.y = v@P.y + 2;
}

 

It moves the whole grid of points. How can I move only the point 56?

I cant figure how to select a single point of a grid with the code

 

Link to comment
Share on other sites

The most obvious problem here is that you're using = instead of == in your conditional statement.

That said, because point wrangles are always running in parallel (all points are processed "simultaneously"), isolating a single point like this is bad form. You should consider using "56" as the group mask for the wrangle instead, or create a point group upstream if you need more points than that.

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...