UI Experiment: Named Undo Snapshots #118091
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118091
Loading…
Reference in New Issue
No description provided.
Delete Branch "Harley/blender:UndoWaypoints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allow users to add a named snapshot to the undo history
This PR adds an entry to the top of the Undo History list for "Add Snapshot":
If you select this item it brings up a dialog where you can enter a description for the current state. It defaults to creating one with the current time, but you can type anything you wish.
This way you can plan a complex set of changes that you think might need to be undone and add this before proceeding. It is then easier to find the position afterward
Navigating the undo list isn't made easy, partly because it doesn't tell you the actual values fed to operators, so it is often a wild guess where you should click to revert the file to an arbitrary previous state -especially if you've executed an operator several times in a row with different values. In this light, these waypoints seem like a very good idea.
Because of this and the fact that the undo stack is finite, right now when I want to compare two states that are separated by a number of actions I often use incremental saves instead (I just open two Blend files and alt+tab between them).
Now the undo stack is very ephemeral, and I could see this system gain a lot of value if somehow it were retained in the blend file. But I assume that is a completely different matter than adding a placeholder item into a list.
What could help with this? Right now I can rotate a single object and the Undo History will get an entry of "Rotate", the name of the operator.
But the "Info Editor" gets an entry that says "bpy.ops.transform.rotate(value=0.530622, orient_axis='Z', orient_type='VIEW', orient_matrix=((%g, %g, %g), (%g, %g, %g), (%g, %g, %g)), orient_matrix_type='VIEW', mirror=False, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False, snap=False, snap_elements={'%s'}, use_snap_project=False, snap_target='CLOSEST', use_snap_self=True, use_snap_edit=True, use_snap_nonedit=True, use_snap_selectable=False)"
So I have no idea what you would want the undo history to actually say that would be both differentiating and distinct enough that you could pick that particular operation out of list of 100 operations. Not rhetorical, really asking if you can think about how those items could look to help.
I sometimes think that a timestamp shown for every item might help. The current time is usually easily known and if the entries showed their time if might help differentiating. Or perhaps not. It might help when there are gaps, like finding the state just before you had lunch, but might be just a bunch of numbers adding visual confusion too.
Me too, but still exploring with it. I think the name and timestamp idea is a bit lame. I was trying to see if something quickly set could be useful. But I think that should open a dialog where you enter a custom description instead.
It might be nice if saving added a entry to the history list. We obviously can't "unsave" but there could be an inactive (grey-out) entry saying "Saved at..." or whatever.
This is pretty neat I think. Like you or others said, if you did like 30 things and not sure where you were/what is what.
Better than nothing/the list it is now IMO
naming the waypoint would be awesome like describing a state / a finished step .
or let it that default name and date: month/day/hour/minutes + having dialog for custom tooltip for this waypoint so hovering on it shows the cusom description (if can be edited later would be perfect)
I don't like this idea, even if add the ability to assign names to waypoints. The number of steps is not infinite, the data is at risk of being easily lost. in addition, it seems to me that it is worth working much more with the design of this function, turning it into full-fledged snapshots with its own UI and additional functions
I'm not sure what you mean by this. Can you explain further?
You say both that you "don't like this" and also that it is "worth working" more on it, which I find confusing.
What "UI and additional functions" would be required to turn it into "full-fledged snapshots" ? I need details.
The number of undo steps is not infinite. yes, the maximum number of steps is 256, which is quite a lot, but the user, for example, can make many small movements that create a undo step: move the vertex a little, draw a few strokes with a brush, etc. Since waypoints are essentially a undo step, they can easily be erased.
I believe that if work on this feature goes beyond a small experiment, then much more work needs to be done on it.
in your example, the waypoints are quite simple. they are more like bookmarks. you can develop idea, for example, add additional metadata like a screenshot or a description of a waypoint, put them in a separate list, because usually undo history looks very cumbersome
I am fairly confident increasing the verbosity of the undo stack in a way that clarifies it for most people is possible, but there would be some cherry-picking to do, concerning what to include exactly. For instance, the transform operator could report axis constraints, because that's often meaningful to the user, can help pick it apart from its immediate neighbors. It could also report a distance traveled and the transform orientation used. That comes up to : "Move 3.14m Local X" at worst (=longest).
The extrude operator could report the number of faces and the length...the frame change operator (especially interesting for animators) would report on the new frame number, changing a property anywhere in the interface would show its name (not just its new value) and potentially the object/scene it lives on, etc. I feel that would address the issue of an inscrutable undo stack more frontally than providing a way to place landmarks (which absolutely still make sense in a world where we have a clearer undo stack).
UI Experiment: Undo Waypointsto UI Experiment: Undo Snapshots@HadrienBrissaud
I updated this so that it now brings up a small dialog where you can enter any text you want to name the snapshot. But with a default, in case we are lazy, of "Snapshot at" and the current time.
The term "Snapshot" works for me a bit better than "Waypoint", especially since this action add an undo snapshot. So not just marking a place in the list but adding a new entry. "Checkpoint" could also work maybe.
UI Experiment: Undo Snapshotsto UI Experiment: Named Undo SnapshotsPersonally I think the usefulness of this feature is not enough to justify it, undo steps are ephemeral and this is not a persistent snapshot. And going into the topic of how to make such snapshots persistent opens another can of worms, that I don't think we should be spending time on now.
Pull request closed