Closed JoOkuma closed 3 years ago
Hi @JoOkuma - thanks for the nice and complete report, much appreciated! I'll take a look when I find some time but no guarantees of a timely fix. From twitter it looks like you managed to find a workable solution, do you have a better idea under what causes you were seeing this now? Is it possibly only happening at the end of an animation?
Hi, Alister. Sorry for the late response.
I found the bug this morning, the issue is with the interpolation.
I just learned that booleans are considered numbers in python so a boolean change of state calls the interpolate_num
which results in a float between 0 and 1 that is interpreted as True except when it's zero, hence it's hardly ever updated.
I can change the if conditions to call interpolate_bool
if one of them is bool
, but this leads to the behavior of the change occurring in-between steps, for instance, in the above code the change happens after 30 steps
This is expected because it only changes when it crosses the 0.5 fraction, but shouldn't booleans changes happen instantly? `
@JoOkuma no worries! I had totally forgotten about this myself so thanks for coming back to it
Super interesting, thanks for delving deeper! Agreed, it seems like we should modify the interpolate_bool
function so that the change happens instantly šš¼
closed by #108
I'm trying to make a movie where some layers are turned on and off.
Making them visible is working, but sometimes it is not possible to make the layer invisible (it works in a few cases, but I couldn't narrow it down).
Minimal reproducing example:
Video, I expected the membranes to be invisible after the second "bounce".
https://user-images.githubusercontent.com/21022743/130722072-67f6f598-9f31-4645-8c9f-dcc7ce9e28a5.mov