Notifications
Clear all

[Closed] BuildMesh() not updating when time slider is scrubbed

Hi,
So my BuildMesh uses picked particle source, the particles are emmiting over time, so my build mesh should be updated every frame… but I noticed that when I am scrubbing BuildMesh() is not ever called…

Thanks in advance…

3 Replies

I found a clue:
RegisterTimeChangeCallback()

It looks like I should call build mesh three…
Is this the right way?

Nope, TimeChangeCallback is not the right way.

You need your plugin to override Interval ObjectValidity(TimeValue t) and return a proper validity interval. By default it’s “FOREVER”, but you need to intersect it with the object validity interval of your input nodes, or you can just return Interval(t,t) to have it update each frame.

Great, thanks…