Jump to content

What does SOP_Node::select() do


Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...