Commit Graph

221 Commits

Author SHA1 Message Date
Yusarina 155c40d4d4 Improvements
- Improvements to materials, still needs work but looking better.
- Model imports the correct size now.
- Attempted to fix bones positions, rotations and etc, but failed, however the work I done should setup it up to work maybe....
- Minor improvements.
2024-11-17 20:31:58 +00:00
Yusarina e48226dab1 Bones now Import but still broken
- Bones now fully import
- Bones do not import the correct size or rotations it seem though.
2024-11-17 00:50:32 +00:00
Yusarina 4e18362451 Typing 2024-10-22 00:27:09 +01:00
Yusarina fd87d1d5d7 Auto update now works 2024-10-22 00:18:19 +01:00
Yusarina 1b908a4200 Fixes 2024-10-22 00:08:07 +01:00
Yusarina 2e06cc9945 Initial Updater
- More simple updater compared to cats
2024-10-21 22:17:38 +01:00
Yusarina 670115a947 VRM Added, Import Anything chages.
- Added VRM to the list of files able to be imported.
- Added error handling for missing vrm importer, will popup to the user telling them to download vrm addon.
- Removed automatically url opening as we should have user consent to open a url, automatic url opening goes against blenders best practices and can be a security concern.
- Optimised the way we import multiple models, the old way just added unnecessary complexity, The try-except block was used to iterate over self.files and set is_multi to True if no exception occurs. However, this is an unnecessarily complex way to determine if the list is non-empty. Simply checking the length of the list is more straightforward and efficient. The way we were using the try-except box could of also lead to silent failures which is not user friendly.
2024-10-14 00:13:08 +01:00
Yusarina fc0bafef48 Merge pull request #58 from 989onan/MergeArmatures
Add apply shapekey to basis
2024-09-22 22:46:55 +01:00
989onan 8191c795f4 Add apply shapekey to basis
add apply shapekey to basis to shapekey menu

I believe I wrote this simple implementation for Tuxedo, I don't remember how I came up with it.
2024-09-22 14:50:26 -04: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
989onan a24842d01c Fix pmd and pmx importing somewhat 2024-09-11 20:20:26 -04:00
Yusarina dd751a9d32 Merge branch 'main' into MergeBones 2024-09-11 01:36:05 +01:00
989onan dc2b6e46ce Add Bone Tools
- Added merge to active to tools section for bones
- Added merge to individual parents, which merges each selected bone to their parent bone
2024-09-06 12:32:50 -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 bb108d28a0 Importing now removes default cube, camera and light. 2024-07-25 22:18:40 +01:00
Yusarina 281c53e577 Core Translations 2024-07-25 03:22:31 +01:00
Yusarina 05cc6c830c UI Order Fixes 2024-07-25 02:25:09 +01:00
989onan 0af4380474 oops 2024-07-24 21:15:08 -04:00
989onan 66b4b14447 reee 2024-07-24 21:13:34 -04:00
Onan Chew b018708005 Merge branch 'main' into Texture-Atlasing 2024-07-24 20:49:25 -04:00
Yusarina 018a080a47 Update common.py 2024-07-25 01:45:21 +01: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 9bca4888f5 Merge branch 'main' into Digitigrade-legs-tool 2024-07-25 00:50:56 +01:00
Yusarina c27ea638a1 Merge branch 'main' into Import-Anything 2024-07-25 00:48:27 +01:00
989onan 65ddea16e8 Fix problems
- fix errors
- add import to UI
2024-07-24 19:27:46 -04:00
989onan 7401ba78d5 Adds a bunch of import methods
Yes I did do this code all myself and they have been looked over and modified since proposed to other addons.

The commented MMD animation importer is stashed as a comment for now till an MMD animation importer is properly created.
2024-07-24 18:20:28 -04:00
989onan ce1cc79664 yuck
oml fix!
2024-07-24 17:53:02 -04:00
989onan bf108eb94a Merge branch 'Digitigrade-legs-tool' of https://github.com/989onan/Avatar-Toolkit into Digitigrade-legs-tool 2024-07-24 17:50:04 -04:00
989onan 6d4b115855 oops
took changes from another branch, this should yeet
2024-07-24 17:49:26 -04:00
Onan Chew b12904341c Merge branch 'main' into Digitigrade-legs-tool 2024-07-24 17:45:37 -04:00
989onan ce7c6aa664 Add digitgrade legs tool 2024-07-24 17:41:17 -04:00
Yusarina a8d7cd3032 Typing 2024-07-24 00:52:04 +01:00
Yusarina 76046f7c6d Armature Selection Improvements.
- Added a check to make sure Armature is valid.
- Added a helper to select the current armature  selected in armature selection.
- Added a helper to get all meshes.
- Updated all current functions to work with the system.
2024-07-24 00:27:14 +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 703bd57ecf Merge branch 'main' into main 2024-07-22 22:16:55 +01:00
Onan Chew 97e44f7420 Merge branch 'main' into Texture-Atlasing 2024-07-22 17:12:37 -04: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
989onan 5a3cc5a087 Finally works
This is a good first start to material combining
It may need a few tweaks from here, but for now it should be good
2024-07-15 01:51:59 -04:00
989onan 942e7e2868 Got images working
- does not do UVs yet
- is able to pack images using a split algorithm. I think I broke the size finding though for the output canvas.
- does not combine materials after packing
2024-07-14 23:55:20 -04:00
989onan e875f9192a Fixed the UI to be much better
- ui for materials is now a list with no duplicates
- auto detects that materials have changed and prompts the user to reload
- due to context limitations in code, user is needed to reload the materials, but the ui is made so the user is forced to reload the materials to see them
- later on, we should prevent user from atlasing if the material list is not up to date.
2024-07-14 15:36:01 -04: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 cce7e986bb Re-add typing 2024-07-08 09:42:16 +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