treebucks Posted September 8, 2015 Share Posted September 8, 2015 I'm attempting to do box modeling inside houdini. Is it possible to create a polygon after selecting 4 points? Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted September 8, 2015 Share Posted September 8, 2015 (edited) sel = kwargs['pane'].selectGeometry(geometry_types=(hou.geometryType.Points,), allow_obj_sel=False) cur_node = sel.nodes()[0] items = sel.mergedSelectionString() add_node = cur_node.createOutputNode('add', 'points_to_poly') add_node.setParms({ 'prim0':items, 'closed0':True }) add_node.setDisplayFlag(True) add_node.setCurrent(True, True) Place this code to shelf tool and assign Scene Viewer hotkey. Hope this helps. Edited September 8, 2015 by Alexey Vanzhula 1 Quote Link to comment Share on other sites More sharing options...
treebucks Posted September 8, 2015 Author Share Posted September 8, 2015 it works. amazing. thank you. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted September 9, 2015 Share Posted September 9, 2015 (edited) It's a very cool technique - but if you are learning Houdini it's good to know a built-in method too. Add an AddSop to the network, Set the AddSop to Polygons/ By Group and use the white reselect arrow to select the points. Point order matters too. You may also want to set 'Delete Geometry But Keep the Points' under Points tab, and, 'Remove Unused Points; under Polygons tab. Edited September 9, 2015 by tar Quote Link to comment Share on other sites More sharing options...
treebucks Posted September 9, 2015 Author Share Posted September 9, 2015 i'll try that later 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.