Group centroid and bbox

   3823   1   4
User Avatar
Member
7 posts
Joined: Jan. 2015
Offline
I'm wondering if there's a better way to do this. The method I've developed works really well, but I feel like it could be simplified.

My goal is to get the centroid and/or bbox for a group of points or polys. Usually I group the points/polys and use a delete node off to the side to delete non-selected, isolating the group. Then I use a transform node with the centroid/bbox expression on the pivot point to reference the delete node.

Sample project is attached.

It works, but I feel like the whole thing could be streamlined.

Attachments:
group_centroid_example.hip (66.2 KB)

User Avatar
Member
682 posts
Joined: Sept. 2013
Offline
There is $GCX $GCY $GCZ referring to the centroid of the input group. Have a look at “Locals” in the documentation of the transform node.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links