WesleyE Posted May 11, 2014 Share Posted May 11, 2014 Hi, I'm having a small problem trying to process multiple groups. I've created some groups both with my own code and with the standard group node, but my second node is not picking them up. I'm sure the created groups are primgroups. This is my code inside of the cook method: //Try 1 GA_PrimitiveGroup *grp; GA_FOR_ALL_PRIMGROUPS(gdp, grp) { int i = 0; //Breakpoint here } //Try 2 GA_PrimitiveGroup *polyMeshGroup = gdp->findPrimitiveGroup("polymesh"); if (polyMeshGroup == NULL) { addError(SOP_MESSAGE, "No polymesh groups found to build structures."); return error(); } Is there something else I need to process before I can access the groups inside the detail? Quote Link to comment Share on other sites More sharing options...
edward Posted May 16, 2014 Share Posted May 16, 2014 No, if findPrimitiveGroup() can't find your group then it's not there. Quote Link to comment Share on other sites More sharing options...
WesleyE Posted May 16, 2014 Author Share Posted May 16, 2014 I've posted this on the sidefx forums as well. I misunderstood what the gdp contained at the beginning of the cook. The gdp holds the previous cook, not the first input, so I had to do a duplicateSource to get it to register. 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.