Jump to content

move selected points with vex


Recommended Posts

a nearpoint selection. I want to move the tagged points in a foreach loop in y direction. dont get it to work. Seems to be to basic... lol

geo 0 is a cube, 1 is a sphere.

int origin = chi("source");
vector pos = point(1, "P", origin);
float distance = ch("dist");
float height = ch("height")

int targets[] = nearpoints(0, pos, distance);

foreach(int pt; targets);
    setpointattrib(0, "Cd", pt, 1, "set");
    setpointattrib(0, "P.y", pt, height, "set");
    //@P.y = @height;

really, not able to figure it out. Wow.

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.

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