-
Notifications
You must be signed in to change notification settings - Fork 354
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
History node #93
Comments
What kind of states? Can you walk me through a scenario? |
I'm still not super familiar with how nodes work internally, so maybe this is a crazy idea. Mostly, I wanted to pitch it to see if it would work. Here's a simple graph with a history node. source -> effect -> history -> target The history node would save the state/s of the node before it when It's possible a node isn't the right approach. Maybe this would be a method on the seriously instance. Non-linear node graphs introduce some complexity, for sure. |
So you mean save a snapshot of the image frame? The As far as saving state of all the non-image input settings, I feel like it's outside of the scope of the library right now. Unless you have a really convincing use case. But I would like to get better at exporting the entire graph state, and I do have some ideas about API improvements that might make this sort of thing easier. |
I'm trying to implement an undo feature. Definitely wouldn't be something I'd run every frame, so I doubt memory would be an issue. I have no problem saving a frame, but I'm wondering how I can push that frame back into the graph. Maybe switch the input for a frame, pause, and switch back? I'm using |
Well, for many effects you could pass the output through a bunch of But that probably won't work for However, this does sound like something you could do if Seriously allowed cyclical graphs. It explicitly rejects cycles now, but I could allow for it. The cycled input would always have to be one frame behind to avoid halting infinite loops. |
Ohhh yes I would love to do some work with cyclical graphs! |
It would be cool to have a history node that could save and restore states. What do you think?
The text was updated successfully, but these errors were encountered: