Notifications
Clear all
[Closed] BuildMesh() not updating when time slider is scrubbed
Apr 05, 2019 3:02 am
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
Apr 05, 2019 3:02 am
I found a clue:
RegisterTimeChangeCallback()
It looks like I should call build mesh three…
Is this the right way?
Apr 05, 2019 3:02 am
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.