Krion Posted March 16, 2019 Share Posted March 16, 2019 Hi! I have basically the same question as this, but with a different goal: https://www.sidefx.com/forum/topic/50237/ I too wonder if there is a simpler way than 'group > delete > centroid the delete', but I would like to do it with a expression rather than a local variable. This way I can create a point in the center of a group in the Add node. Help or other suggestions would be appreciated! Quote Link to comment Share on other sites More sharing options...
bonsak Posted March 16, 2019 Share Posted March 16, 2019 If you Pack the group you should get a single point in the center. Then Add SOP set to 'Delete but keep points': Quote Link to comment Share on other sites More sharing options...
tmdag Posted March 16, 2019 Share Posted March 16, 2019 (edited) If you 'middle click' on any node, there is a lot of info, also a center position which you can strip out in many different ways" - like an answer from sidefx forums: $CEX/$CEY/$CEZ - or expression centroid("../node/path", D_X), centroid("../node/path", D_Y), centroid("../node/path", D_Z) - or vex "getbbox_center()" function. https://www.sidefx.com/docs/houdini/vex/functions/getbbox_center.html - or retrieve prim intrinsic bounds, substract min from max and divide by two. ... and probably 5 more other ideas ;] Edited March 16, 2019 by tmdag 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.