Hi everyone. I'm learning hdk and I'm stuck with primitives. The goal is to loop over all the primitives on a geo and perform pointevaluate to get world position based on uv (so it's like primuv function in vex). THen apply that value to a primitive attribute.
What I found so far is that I can run pointevaluate only from GEO_primitive.
I'm running a loop using GA_FOR_ALL_PRIMOFF (gdp, primoff) but I can't find a function that get me GEO_primitive object from that.
In sample files I found a code using GA_FOR_ALL_PRIMITIVES that seems like return GEO_primitive but then how do I get offset based on that and assign a value to a primitive ?
I'm a bit lost with all those concepts.
Little explanation would be very helpful.
Thank you.