-
Notifications
You must be signed in to change notification settings - Fork 74
New animation editing functionality in Model Viewer #1180
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
base: main
Are you sure you want to change the base?
Conversation
Added a keyframe display and controls to the UI Changed the pause animation to not reset the frame
|
This is good stuff. Nicely done. I have a question/request. A lot of looping animations don't have a duplicate of the first frame which causes a skip in the animation (see #629) Any way to automate that? Ideally it would be done at runtime, when the animation loads would probably be the best. Also we would need to either check if the first and last frame are already identical (not all loops miss this frame) or have a list of exception. |
Extended the extra info panel a bit to fit keyframe output
There's not any easy way to automate that and having it done at runtime would be for a different part of the engine. However, I may add the ability to move keyframes around in the animation and with the latest commit, you can add new keyframes which will copy the current frame you're on. With both of those, you could copy the first frame and move it to the end of the animation but you would have to manually do this for any animations you wanted to fix. |
Added a limit on adding/removing keyframes to the game min/max
|
Well if making a copy of the first keyframe and moving it to the end can be done manually, it'll most likely be possible to automate (maybe not at runtime but we'll see). I can take care of the automation. I'm looking forward for the ability to move keyframes around. Keep up the good work. |
At the request of @WarpedEdge I have begun working on adding some new functionality to the model viewer so that animations can be edited/added/saved in a format compatible with the game. This will include:
This is still a work in progress at the moment but the first 3 bullet points above are currently working.
The .anim files must first be exported from Hades Workshop and placed in the
StreamingAssets\Assets\Resources\Animations\folder, then in the Model Viewer, first pressEto generate an export file andEagain to export the existing animation. Then pressLto load that animation as a custom clip. Once the custom clip is loaded, you can pressSpaceto pause the animation and useZandXto decrement/increment the current paused keyframe. From here, you can select and bone and modify it and then pressSpaceagain to view the modified animation. PressingEtwice again to export will save this custom animation into a new .anim file (from the export configuration file).2025-06-26.17-13-25.mp4
2025-06-26.17-14-08.mp4