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 }
Is the rest of the geometry being copied from the inputs? Many SOPs follow a pattern like what is illustrated in the SOP_Flatten HDK example with a duplicateSource() call copying the input's geometry (including primitive groups) into “gdp”.