Commit 8a6fcd5
QOL improvements when adding or selecting keyframes (#1423)
* Add support for animated layer effects and a keyframe-based timeline (#1417)
* Start working on animatable layer effects
* Interpolate colors & animated effects work on apply
* Add nodes to change tween properties
* Use smaller texts for the tween property option buttons
* Fix crash when enabling animation, disabling and enabling it again
* Remove keyframes
* Load and save animated parameters in pxo files
* Format
* Start working on a keyframe based timeline
* Create keyframes in the UI
* Start working on keyframe value changing
* Remove animated layer effect code from the layer FX settings
* Refactor animated_params dictionary
* Probably fix pxo loading
At least old pxo files seem to be working properly
* Update timeline when adding/removing keyframes
* Use a tree for the layer elements
Need to implement folding logic for the keyframes themselves though
* Add a timeline cursor
* Improve cursor moving logic
* More timeline cursor improvements
* Some UI improvements
* Make timeline a bit prettier
* Fix animated params pxo loading
* Some small improvements
* Fix scrolling
* Don't create keyframe if there already is one
* Fix frame container not resizing when clicking on keyframes
* Added Constant transition
* Add undo/redo when adding and deleting keyframes
* Fix keyframe unselection
* Start working on multiple selected keyframes
* Change name of a script
* Change properties of all selected keyframes
With undo/redo support
* [WIP] Move keyframes
While it technically works, the UI side is not being updated. Also, I just realized that the way we're handling keyframe creation and deletion is wrong, because the nodes get freed when switching to a different layer, or a different project. So we most likely should just re-create the keyframe nodes when we add, delete or move them. Which means I also need to change the selected_keyframes array to store param_name and frame_index, instead of nodes.
* Add IDs to keyframes for easier handling
* Don't allow keyframes to go below frame 0
Mostly so they can't be lost. The proper solution would be to support negative frames, like Godot's animation player editor does, but this should work for now.
* Zoom in the timeline
* Support booleans and colors, scroll timeline when changing cel or layer
* Implement the keyframe timeline inside the main timeline panel
I feel like the UI does need some improvements still
* Make properties grid container and delete keyframe button persistent nodes
* Undo/redo refreshes the keyframe property UI
* Hide tags when keyframe timeline is visible
* Fix property nodes not having the correct name
* Use a custom node to draw frames instead of using labels
* Fix group layers passthrough mode not having its effect be animated
* Don't create tracks for properties that currently cannot be animated
Such as textures
* Better documentation and future-proofing
* Keyframe Animation QOL inprovements (#1420)
* Fix keyframe getting created at the wrong frame when the uses right clicks at the same 'x-position' as the frame marking
* Hide extra UI when no FX are present
* formatting
* Rename _hide_extra_UI to _hide_extra_ui
Fix linting error
---------
Co-authored-by: Emmanouil Papadeas <[email protected]>
* Select newly added keyframe
* only select keyframe if it's added for the first time
* Improve selection of keyframes
* Formatting
* To move single keyframe, you no longer have to select it first
* Formatting
* Snap cursor to frame when drag is released
* formatting
---------
Co-authored-by: Emmanouil Papadeas <[email protected]>1 parent a15cc8d commit 8a6fcd5
File tree
3 files changed
+35
-3
lines changed- src/UI/Timeline/KeyframeTimeline
3 files changed
+35
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | 46 | | |
| |||
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| |||
0 commit comments