Alexey Vanzhula Posted September 4, 2015 Share Posted September 4, 2015 Hi. I need some functions like centroid, or for maybe bbox, but that works with points patterns (groups). Or any other fast solution to get centroid of points list on the fly. Any ideas? Quote Link to comment Share on other sites More sharing options...
dedeks3000 Posted September 4, 2015 Share Posted September 4, 2015 Look here : https://github.com/captainhammy/Houdini-Toolbox/tree/master/SOP http://www.orbolt.com/asset/animatrix::centroidalPoints::1.00 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted September 4, 2015 Author Share Posted September 4, 2015 (edited) Thanx! But I need some native method to find centroid once in my tool script. Some simple trick i can do with creating Blast SOP (with point list) and get centroid from it with hscript expression. After that i delete Blast SOP.Any other solutions? Edited September 4, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
pezetko Posted September 4, 2015 Share Posted September 4, 2015 Vex function getbbox() or getpointbbox() (whose supports group as argument) then avg() (average) to get centroid? void getbbox(int input, string primgroup, vector min&, vector max&) Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted September 4, 2015 Author Share Posted September 4, 2015 (edited) Thanx I know it It is best for me now. Don`t want to create wrange node for it. Any other ? Edited September 4, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
dedeks3000 Posted September 4, 2015 Share Posted September 4, 2015 The Transform SOP didn't do the job ? Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted September 4, 2015 Author Share Posted September 4, 2015 AttribWrangle SOP with simple snippet do the job for me. But I want try to find not-node solution ) Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted September 4, 2015 Author Share Posted September 4, 2015 Why we have pointavg hscript expression function, but have not pointgroupavg ? 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.