Hi, folks,
I think I have done that before, but I can’t recreate this at the moment: I need to incrementally increase a point attribute every frame, i.e. the attributes value of the previous frame must be added up with the current frame, on and on (for example to increase the color from black to white during animation). Here’s the pseudo code:
FOR_ALL_GPOINTS(gdp,ppt)
{
Attr = ppt->attr_index_name(my_attr);
*Attr += 0.1f;
}
What happens so far is my custom node cooks, the Attr’s value is increased by 0.1f, however when play button is hit – the Attr’s value doesn’t change further – looks like either the node is not re-cooked or my code/approach is wrong. Or is it possible at all?
Can you give me a hint?
Thanks.