EdwardBrian Posted December 14, 2010 Share Posted December 14, 2010 Hi, I d like to set the pivot of a transform node to the min ore max value of a defined sourcegroup... $XMIN a.s.o. just give me the bounding information of the whole iput geo ... following the houdinihelp in need something like "The X extents of the bounding box of the input GROUP" and not the INPUT itself Thx a lot ! greets Lucas Quote Link to comment Share on other sites More sharing options...
Macha Posted December 14, 2010 Share Posted December 14, 2010 (edited) You could try something with Python geo = hou.pwd().geometry() group_points = geo.findPointGroup("group1").points() x=[] for i in group_points: x.append(i.position()[0]) min_x = min(x) Edited December 14, 2010 by Macha Quote Link to comment Share on other sites More sharing options...
rdg Posted December 14, 2010 Share Posted December 14, 2010 Python might get somewhat slow for large point groups. You can also branch off into a DeleteSOP and grep the values from there ... Quote Link to comment Share on other sites More sharing options...
graham Posted December 14, 2010 Share Posted December 14, 2010 I'd say the easiest way is to just use a Bound SOP on your group and then use a centroid() expression to get whatever values you want from it. See attached. group_bbox.hip 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.