Keyframe repositionaing is finally here!
(the second time I attach the wrong video to the devlog)
Timeline is about to be finished. Now you can select keyframes and reposition them. Press shift to add to the selection. Use the selection box to select many keyframes at once. And you can also select keyframes from multiple layers at once.
some Quality of life changes
Keyframe selection works by searching for the nearest keyframe inside a search radius on the same layer. At first I made it select the keyframe at the exact frame the mouse is currently at, but that became very annoying when zooming out as the frame width gets smaller.
Viewport does not update in real time on every mouse move while dragging layers or keyframes, but instead uses some tricks to delay heavy operations until the the mouse button is released. One trick is to when I drag a layer, I only shift the layer drawing, but I do not commit the changes to keyframes yet. To appear as if it was live updating, I send a signal to the viewport to show the viewport a few frames later or prior than the actual current frame is. For keyframe dragging, I actually don’t have a work around. Cavalry uses some visuals like arrows to indicate how that change in keyframes corresponds to changes in viewport but I’m not sure if I’m going to implement it this way (open for suggestions)
Additions
- Added a whilte outline to selected keyframes
- Click on a keyframe to select it; Click and drag to reposition it
- Drag over keyframes to select many keyframes using the selection box (called a rubber band)
- Use
shiftin combination of the previous two moves to add to the existing selection - Time cursor now allows mouse events through instead of blocking it
- Made pixel level adjustments to layer resizing handles
Next, I want to add layer reordering and multi-layer/multi-path selection, then I could consider the timeline milestone finished (maybe I add color coding and tags). I want to move on to the graph editor because I think I spent too much time on polishing the timeline and the event is ending soon (I don’t think 9 weeks are enough :|)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.