Commit Graph

27 Commits

Author SHA1 Message Date
Yusarina ff23d23cfc Start of the Major Overhaul
I decided to go through each function and UI section one by one, improving and overhauling things. Each function and section is going to be fully tested and not rushed out.

This is the best way to catch things, but also include the code base as much as possible.
2024-12-03 22:58:17 +00:00
Yusarina 7e584e3648 Fixes
This fixes is to get everything working on the new auto load and properties system.
Also some other small fixes.
2024-12-03 01:26:10 +00:00
Yusarina fe8f5f69d5 Plugin Registration Changes
- Re-wrote how the plugin registers itself.
- No longer need @register_wrapper classes get auto detected and added.
- The new Auto loader is much better then the old way, no longer need "if "bpy" not in locals():" this was an old way of doing things and wasn't really efficient.

 using auto_load.py provides several advantages:

- It automatically discovers and loads all modules in the addon.
- It handles dependencies between classes correctly through topological sorting.
- It manages registration order automatically.
- It properly handles unregistration in the correct order.

This approach is much less error prone and I not had any issues so far. However it still needs testing fully.

I have also start to re-organise files into folders as well, this is going to be needed so we don't have a long list of files as Avatar Toolkit is getting larger then i originally planned.
2024-12-02 01:52:11 +00:00
Yusarina 6484adedaa Fixes
- Fixed issue where blender would error when exiting due to property being register twice.
- Fixes missing strings.
- Attempt at fixes properties not clearing correctly.
- Updated Japanese json file with all latest strings.
2024-11-26 04:16:03 +00:00
Yusarina bb77d54a49 UI Improvements for Atlasing
Made some UI imprvoements to the Atlas system, uses icons, able to collapse materials to prevent a huge long list and more.
2024-11-26 03:50:56 +00:00
Yusarina 4d20ce77f7 More Fixes
- Fixes an other error in the updater due to urllib not being imported and used correctly.
- Small Atlas Texturing fixes and UI Improvements.
2024-11-26 03:12:42 +00:00
Yusarina 346f73ebb0 Bug Fixes
- Fixes issue where console was getting spammed re armature selection.
- Fixes apply as rest pose issues and improves the system. https://github.com/teamneoneko/Avatar-Toolkit/issues/52
- Fixes Apply pose to shapekey, it does what it's meant to do now. https://github.com/teamneoneko/Avatar-Toolkit/issues/52
- Fixes error in updater when there no updates to list.
2024-11-26 02:42:17 +00:00
Yusarina 2e06cc9945 Initial Updater
- More simple updater compared to cats
2024-10-21 22:17:38 +01:00
Yusarina a3111644af Rigify To Unity Function
- This is an work in progress, this expands on the system that NyankoNyan and improves that system.

- It remaps the bone hierarchy to match Unity's expectations
- It adds necessary constraints to ensure proper bone movement (For the people who need it, can be removed via remove constraints button).
- It removes redundant bones that could cause issues in Unity.
- It renames bones to match Unity's Humanoid Avatar naming convention.
- It provides an option to merge or remove twist bones, which are not supported by Unity's humanoid system.
- It adjusts bone connections and deformation settings.

I think more needs to be added, but this seems to work for now.
2024-09-20 16:48:51 +01:00
989onan b015736ead fix merge armatures
now the different options work. and it has an apply transforms
2024-09-13 12:38:08 -04:00
989onan 0cb4d6bb3a Merge armatures button 2024-09-12 21:56:39 -04:00
Onan Chew a08d888acb More cleanup
- operator strings are referenced via the class property rather than a hard coded string
- class names have been cleaned to have _OT_ or _PT_ depending on the kind of class it was.
- Class names should mostly be CamelCase now.
2024-09-04 20:16:34 -04:00
989onan 148797ece2 Cleanup some stuff 2024-07-29 13:03:31 -04:00
Yusarina 771c4926a6 Progress System
- Added Progress system so the user knows something is being done when there use certain functions. Currently only Join Meshes, Viseme creation and combine materials use it.
- Disbabled some translation debguing stuff to remove spam from the console.
2024-07-25 23:06:20 +01:00
Yusarina 281c53e577 Core Translations 2024-07-25 03:22:31 +01:00
Onan Chew b018708005 Merge branch 'main' into Texture-Atlasing 2024-07-24 20:49:25 -04:00
Yusarina deaada347a Shapey Key Update.
- Viesmes will now use selected armature.
- New dropdown menu in the viseme UI so the user can select which mesh to create visemes on.
- New helper function get_armature_meshes
- Added a new check before we create the new visemes to see if any exist, if there do we will remove them and create the new ones.
- fixed several issues and errors.
2024-07-25 01:42:34 +01:00
989onan 54f1800ead Hot Fix
fix texture atlas having registry problems, and the normal maps not looking good after being atlased.
2024-07-24 20:35:49 -04:00
Yusarina ddb76a0c90 Merge branch 'main' into viseme-dev 2024-07-25 00:57:08 +01:00
Yusarina 06c7cff4b7 Basic Start of Armature Selection 2024-07-22 23:13:10 +01:00
Yusarina 936b6b37c3 Merge branch 'main' into viseme-dev 2024-07-22 22:25:12 +01:00
Yusarina ee84ae640a Translation Popup now added.
Due to some werid thing in Blender 4.2+ where we just can't get descriptions to translate, we now tell the user some translations won't apply unto restart.
2024-07-22 01:56:22 +01:00
Yusarina 2107c11e66 Organise Code and fixes.
- Organised some of the code better.
- Fixed sort order loop.
- Added typing in some places there wasn't.

This is a very basic start to Viesme creation, I still need to add translations for some stuff and improve it. This is very much inspired from the Cats Version.
2024-07-08 10:14:30 +01:00
Yusarina 07b2dba51f Basic Viseme Creation Support
Does not work yet, but it's the start
2024-07-08 09:41:46 +01:00
Yusarina eaafd3bb69 Translation Updates.
- Added addon_preferences so we can save users preferences into a json file.
- Made translation slightly simpler

This mostly works just have to figure out why we can't update description on reload (There only update on blender restart).
2024-07-08 09:13:52 +01:00
Yusarina ce9cc9684f Translation Update
Translation System now works!
2024-07-05 13:01:59 +01:00
Yusarina 01f8363e07 Start of Translations
- This is the start of the translations system, does not yet work as I can't seem to get it to swap languages, I too tired today to fix it but it's a start.
- It also adds properties registration as well.
2024-06-19 02:32:02 +01:00