magneto Posted November 21, 2011 Share Posted November 21, 2011 I am trying to write some basic SOPs using python. I want to get the selected edges in the current geometry. I looked at this page where I am handed a Geometry instance of the cooked OP, but it seems like there are no edge related functions present: http://www.sidefx.com/docs/houdini11.0/hom/hou/Geometry I want to do it in the way of other OPs like Dissolve where it uses the currently selected geometry that's handed to it. Thanks. Quote Link to comment Share on other sites More sharing options...
graham Posted November 21, 2011 Share Posted November 21, 2011 Edges don't really have an object type representation that is available to the user in Houdini. They have functionality for doing such things in the HDK, but not so much other ways. Edges are just a connection between two points, so given a list of certain points, you could perform various actions on "edges". There are some examples around of people creating faux edge based tools with points in SOPs which might prove informative. Quote Link to comment Share on other sites More sharing options...
magneto Posted November 21, 2011 Author Share Posted November 21, 2011 Thanks graham. Do you know if thouse faux edge examples are here or just all over? I would appreciate a link if it's handy. It seems like whenever an edge selection is made so a point and primitive selection too. I imagine I can utilize these to "find" the edges. Quote Link to comment Share on other sites More sharing options...
zarti Posted November 21, 2011 Share Posted November 21, 2011 .. from 'the other side' here there is something that might be useful: http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=19493&highlight=edge .cheers Quote Link to comment Share on other sites More sharing options...
magneto Posted November 21, 2011 Author Share Posted November 21, 2011 .. from 'the other side' here there is something that might be useful: http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=19493&highlight=edge .cheers Thanks Zarti, very useful info. Will read it now. 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.