whisperwing Posted August 24, 2012 Share Posted August 24, 2012 In my custom SOP_Node I want to simulate "highlight faces/vertex/edge" as what Houdini provides in the UI in selection mode. There are a set of SOP_Node::select() functions that seem to be relevant, but when I tried the example SOP_CopRaster it doesn't seem like anything is selected. Does anyone have an idea what select() actually does, or have any suggestion on alternative ways to simulate highlights? My workaround is to create a primitive group or a point group and add the elements I want to highlight, which works fine(middle mouse click on the SOP will show this group). GA_PrimitiveGroup *faceGrp = gdp->newPrimitiveGroup("FaceGrp", 0); GA_PointGroup *ptGrp = gdp->newPointGroup("PointGrp", 0); But for edge group, I tried GA_EdgeGroup *edgeGrp = gdp->createEdgeGroup("EdgeGrp"); and GA_EdgeGroup edgeGrp = GA_EdgeGroup(*gdp, "EdgeGrp", 0); Neither will show when middle mouse click on the SOP even though the group entries is non-zero. Anyone has experience with this? Thanks! Quote Link to comment Share on other sites More sharing options...
edward Posted August 25, 2012 Share Posted August 25, 2012 Edge groups are really new and so full support for them isn't there yet. Quote Link to comment Share on other sites More sharing options...
whisperwing Posted August 27, 2012 Author Share Posted August 27, 2012 Yeah, I see it is new in 12.1, so this is not the real problem here. I'm more interested to see if anyone could give me a hint on how to implement "highlighting" with HDK. 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.