it seems that Plot executes immediately, before the array of motion values has been generated. i’ve tried a number of workarounds, but all of them seemed like they were adding a lot of complexity to something i assume/hope has a simple solution!
for example, i put the call to Plot in an onComplete callback provided by popmotion. but, it seems like it is not possible to use Plot in regular JS (possibly it’s a special Observable object?)
@mcmcclur thank you for that example. I started to go down this path (using a view) but never quite got to a working solution, so it’s nice to see how this could work!
@mootari thank you for the elegant solution - a generator is not something I have even encountered before, so definitely wouldn’t have thought of this! I also wasn’t aware of the stdlib, although I was using a few things from it that I’d seen in other notebooks. Handy to know about that and have the docs.