Page MenuHome

Fluid Simulation doesn't report FrameChanged (script link) to the last frame
Closed, ArchivedPublicTO DO

Description

Hi, i don't know if this is a bug.

The file attached showcase the problem I'm having.

I'm using a python scriptLink set as FrameChanged.

If i bake a particle simulation from frame 1 to 5, the script is called in the following frames:
1, 1 (twice), 2, 3, 4, 5, 1

BUT if I bake a fluid simulation from frame 1 to 5 the script is called in the following frames:

1, 1 (twice again), 2, 3, 4, 1

There is no frame 5 (the baking works, but the frame is not change to activate the script).
I understand that it can be by design. However the differences between these two baking outputs make scripting a little more hacky.

checked in Blender 247 and SVN

Event Timeline

The framechanged scriptlink is not well functioning atm. It needs a recode.
There's another report about it, most likely similar. We'll recode it to make it integrate much better.

Ton,
I'm not sure this is a frameChanged scriptLink bug.

Because in Blender it looks that the bake fluid simulation really skip the display of the "last frame". So recode the scriptLink would not change that (I think)

well, looking forward for the new code :)

Well, the framechange scriptlink doesn't work well at all, but probably in this case there's something else indeed. Let's Daniel look at it!

Ton Roosendaal (ton) changed the task status from Unknown Status to Unknown Status.Sep 18 2008, 4:03 PM

Hello,

during Bake of fluidsim, not all frames are displayed. What counts is the result in the 3dview after bake. After in that 3dview, for every frame I get another fluid.

Also: During simulation, the 3dview/timelime does NOT necessarily gets updated/advanced at all for fluidsim. It works different than "normal" things like particles, cloth etc.

Will move this to TODO list because of the recode thing of the scriptlink.

Thanks!