[Sidefx-houdini-list] [HDK]: Attributes handles can't be nested in loops?

Szymon Kapeniak szymon.kapeniak at gmail.com
Sat May 14 05:29:47 EDT 2011


Masters and Commanders,
... two nested loop over points, on two different gdps, first handle
returns correct values while second one returns always 0 (but works
fine outside the loop). Does it mean to be like that? Replacing macros
with standard loops apparently doesn't help much.

FOR_ALL_GPOINTS(gdp,p)
   handle.setElement(p); // handle initialized on gdp, handle2 on gdp2.
   i = handle.getI();  // works.
   FOR_ALL_GPOINTS(gdp2,r)
      handle2.setElement(r);
      j = handle2.getI(); // *does not* work.
(...)

handle2.setElement(gdp2->points()[20]);
j = handle2.getI(); // this works again

thanks for response!
-- 
skk.



More information about the Sidefx-houdini-list mailing list