anicg Posted February 1, 2019 Share Posted February 1, 2019 (edited) Actually I need to use transform with selected points, whether I need to group them before or not, I don;t know. But the formula is taking from a "copy parameter" being the total number of points (divisions in a circle), I need to group (total/2)+1 and (total/2)-1 and do the same for just total/2 Example: circle divisions = 24, I need to transform number 11 and 13 being (24/2) +1 and (24/2)-1 Another transform for point number 12: 24/2 So if I change my mind and want 36 points, Houdini should take care of it, I don't need to hardcode the point numbers - 17 and 19 - 18 Do Edited February 1, 2019 by anicg Quote Link to comment Share on other sites More sharing options...
fencer Posted February 1, 2019 Share Posted February 1, 2019 If your points count will be even all time, just simple pointwrangle int mid = int(npoints(0)/2); if(@ptnum == mid-1 || @ptnum == mid+1) @group_go = 1; Quote Link to comment Share on other sites More sharing options...
anicg Posted February 1, 2019 Author Share Posted February 1, 2019 (edited) Many thanks, works like a charm. It took me a while to figure out what each part it means. The only bit I'm still trying to understand is why do we have a 0 in the first line npoints(0)? Edited February 1, 2019 by anicg Quote Link to comment Share on other sites More sharing options...
Alain2131 Posted February 1, 2019 Share Posted February 1, 2019 The npoints function needs the input for which it'll look of the point count. The (<geometry>geometry) in the help page means that it wants, well, geometry, and specifying 0 means that it will look for the info in the first input of the wrangle. Here's an example of that : Quote Link to comment Share on other sites More sharing options...
anicg Posted February 1, 2019 Author Share Posted February 1, 2019 Thank you. 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.