-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show specific frame #42
Comments
There's no control over the specific frames in Walkway, although it wouldn't be too hard to add a counter around line 247, if you're willing to DIY. |
Should be generally possible based on the calculation for the progress. |
@DanielRuf - sure, but i'll be damned if i can figure out where it is in the library |
Currently it is not there. There is an internal progress variable but it is not tracked yet. I am currently working on multiple changes and also some progess/resume method. Still not very polished everything but will release the changes when I am done testing, split them into branches and PRs and work with the author, you and the others on the last bits until one of the changes is ready to be published and ready for a new release. Discussion is open then if and what should be in the next releases. |
so, if resume can be at a specific frame and stopped, then that's everything i need. i can build my frame getter around those two things quite easily |
Well, directly going to a frame and resuming from there is not yet possible, even in my current prototype (still not uploaded) as in this case there is no relative time value when the animation started and how much time of the animation was completed in theory, because going from a percentage / progress to the initial (virtual) values means we have to do the opposite of the easing function and calculate the timestamp when this animation was started and at what point the current state of it is. Doing the opposite of the timebased easing functions is quite hard as some of the builtin are not so easy to invert and custom ones are harder. So a 1/easing function is possibly not directly possible. With a time it works, a progress value does not work great. Does a reverse mode make sense like play the animation backwards? As method? Not sure about this idea. |
#45 (comment) added I hope one of both is something what you could need. |
Does |
Sure. So far I could timetravel back and forth and then resume with |
And you still have |
ok, so, if i understand correctly, i could abuse |
approximately
|
Right, timetravel uses millisecond based value. So an animation with a duration of 8000 = 8s would be complete using Still not very polished and I did not invest so much work yet but hopefully helpful and it's clear how it works. |
Oh okay This is fantastic, and I really appreciate the help 😀 |
@ConnorAtherton what do you think about https://github.com/DanielRuf/walkway/tree/new-features-combined-wip? |
Walkway looks like almost exactly what I need in leaving Vivus.
One thing I can't figure out so far is whether I have the ability to show a specific frame. What I want is to render the frames one at a time, so that I can screenshot them, rather than to have them animated in the browser.
Does Walkway support this kind of use?
The text was updated successfully, but these errors were encountered: