Zetha Posted November 22, 2018 Share Posted November 22, 2018 (edited) Hello, How can you select a point, when you have lots of them? Using VEX or nodes Thanks! Edited November 22, 2018 by Zetha Quote Link to comment Share on other sites More sharing options...
A-OC Posted November 23, 2018 Share Posted November 23, 2018 (edited) Group SOP Or in a wrangle you can type: if ( whatever ) i@group_mygrp = 1; There's the group expression Sop too. Edited November 23, 2018 by A-OC The group expression Sop Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 23, 2018 Share Posted November 23, 2018 3 hours ago, A-OC said: @group_mygrp = whatever; Because of how Houdini deals with ints, you can also do that (if your "whatever" fits on one line of code) Quote Link to comment Share on other sites More sharing options...
A-OC Posted November 23, 2018 Share Posted November 23, 2018 9 hours ago, acey195 said: Because of how Houdini deals with ints, you can also do that (if your "whatever" fits on one line of code) Kewl !! Quote Link to comment Share on other sites More sharing options...
Zetha Posted November 25, 2018 Author Share Posted November 25, 2018 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 Quote Link to comment Share on other sites More sharing options...
toadstorm Posted November 25, 2018 Share Posted November 25, 2018 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. 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.