Colin Basnett
9fe5aa0388
Now using shade_smooth to smoothshade imported meshes (same as it did in the pre 4.0 versions)
2023-11-14 00:50:20 -08:00
Colin Basnett
c8e5b8eb47
Fixed a runtime error when importing PSKs
2023-11-10 23:19:36 -08:00
Colin Basnett
c18ac85eed
A warning is now emitted when exporting a PSK with mesh objects that have negative scaling values
2023-09-30 00:53:37 -07:00
Colin Basnett
cf13aade98
Removed legacy handling of storing original bone poses within the custom properties of edit bones
...
It doesn't appear that this code was even being exercised. If problems arise, we can restore the functionality.
2023-09-18 14:13:49 -07:00
Colin Basnett
46443162a7
Merge branch 'feature-nla-track-sequence-5x' into blender-4.0
...
# Conflicts:
# io_scene_psk_psa/__init__.py
# io_scene_psk_psa/psa/export/operators.py
2023-09-18 13:24:12 -07:00
Colin Basnett
32e0d89dbd
Updated PSK and PSA export to use new Blender 4.0 bone collections instead of bone groups
2023-09-17 21:18:41 -07:00
Colin Basnett
da39c14464
Fix for #47
...
This code had been refactored but not tested with the no-armature workflow
2023-09-05 23:37:42 -07:00
Colin Basnett
214f19ff8c
Fix for #47
...
This code had been refactored but not tested with the no-armature workflow
2023-09-05 23:35:39 -07:00
Colin Basnett
3de1f075dd
Minor clean-up
2023-08-25 16:56:59 -07:00
Colin Basnett
560ec8fecd
Fixed a bug where exported PSKs would always use the mesh data's material instead of the object's material
2023-08-18 18:22:16 -07:00
Colin Basnett
8c74987f5b
Added human readable errors when bone, material or sequence names cannot be encoded into the Windows-1252 code page
2023-08-18 18:20:29 -07:00
Colin Basnett
fb2ab89766
Fixed a compatibility issue caused by the fix to #43
2023-08-14 22:42:59 -07:00
Colin Basnett
d0d6deb63c
Changed name of faces that couldn't be added to "invalid" faces instead of "degenerate" faces
...
This is because a face can still be rejected by being a duplicate, but it doesn't necessarily have to be degenerate (i.e., a line or point).
2023-08-10 23:38:56 -07:00
Colin Basnett
ed89e78927
Fix #43 : Wedges can now address vertices with indices greater than 65535
2023-08-09 20:14:24 -07:00
Colin Basnett
95d72c23aa
Fix for error when importing PSKs
2023-07-30 00:06:41 -07:00
Colin Basnett
afe598f671
File structure/naming overhaul on the PSK importer and exporter
...
* Inverted to the option to "ignore bone name restrictions". It is now "Enforce Bone Name Restrictions" and it is off by default.
* Added option to filter out "reversed" sequences from the sequence list
2023-07-29 20:51:23 -07:00
Colin Basnett
782c210f04
Major refactoring pass on the PSA file structure & naming
2023-07-29 16:00:53 -07:00
Colin Basnett
25bf8f2087
Set the parent index of the root bone to 0 instead of -1
...
In normal UE2 derivates, it doesn't appear to matter what the parent index is; but in UE1 games that have basic support for PSK importing (i.e. Harry Potter 2), the parent index of the root bone must be `0` otherwise the import fails.
2023-07-28 03:18:05 -07:00
Colin Basnett
75033056fa
Improved the poll message for PSK export when there are multiple armature objects
2023-07-22 17:09:28 -07:00
Colin Basnett
9e18e40387
Merge branch 'bdk'
...
# Conflicts:
# README.md
# io_scene_psk_psa/__init__.py
# io_scene_psk_psa/psk/data.py
# io_scene_psk_psa/psk/importer.py
# io_scene_psk_psa/psk/reader.py
2023-04-27 19:56:09 -07:00
Colin Basnett
e4e2354834
Added option to include or exclude shape keys from PSK import.
2023-04-03 22:12:09 -07:00
Colin Basnett
89772ad90d
Added an empty MORPH_BASE shape key if any shape keys are present on import.
2023-04-03 22:01:25 -07:00
Colin Basnett
f54d10bb80
Added support for reading and importing MRPHINFO and MRPHKEYS sections.
2023-04-03 21:28:08 -07:00
Colin Basnett
947c86eb8f
Fix for issue #32 .
...
Unrecognized sections are now simply ignored.
2023-04-03 01:52:52 -07:00
Colin Basnett
7111a536b2
A blank material is now created if it is unable to be loaded via the BDK.
2023-04-03 01:40:17 -07:00
Colin Basnett
f7b97added
* Allow users to export a sequence in reverse
...
You can do this by naming a sequence `<name>/<reversed_name>`. For example, `crawlF/crawlB` will result in two export options: `crawlF` (forward) and `crawlB` (the same animation, but reversed).
* Allow users to exclude sequences from the export dialog by prepending the name of the action/marker with a "#" character.
* The "Use original sequence names" option has been removed as it's not really needed.
2023-04-01 15:04:16 -07:00
Colin Basnett
fd02f3f4d7
Now using new BDK addon operators to load the materials
2023-03-09 01:51:04 -08:00
Colin Basnett
f40db53cb9
Fixed a bug where it was possible to export a PSK with no bones
2023-02-18 00:28:31 -08:00
Colin Basnett
8221130e4a
BDK code commit
2023-01-03 20:05:45 -08:00
Colin Basnett
449331cd00
Fixed a bug where certain material errors would not display correctly
2022-11-22 12:57:44 -08:00
Colin Basnett
8ada80e243
Typing and naming improvements
2022-11-22 12:57:06 -08:00
Colin Basnett
38ed183897
Fixed a bug where the root bone orientation would be exported incorrectly
2022-11-22 12:55:56 -08:00
Colin Basnett
86473584b8
Fixing warnings and typing
2022-11-12 16:26:40 -08:00
Colin Basnett
aa8725c3d0
Added a "Bone Mapping" option.
...
This allows imported PSA actions to map to armature bones with names
that differ only by case.
In addition, import warnings are now written to the info log so they
have better visibility to the user.
2022-11-12 16:25:19 -08:00
Colin Basnett
b6ef3dda44
Simplified method used to put armature in bind pose for PSK export
2022-11-01 11:32:25 -07:00
Colin Basnett
65d3104ea9
Added an option to ignore bone name restrictions
2022-11-01 11:28:55 -07:00
Colin Basnett
cd490af431
Fixed a load of PEP8 warnings
2022-08-06 23:52:18 -07:00
Colin Basnett
f58d4c5539
Implemented #22 : Allow users to change the exported PSK material order
...
There is now a material menu that the user can re-order in the PSK export dialog.
2022-07-01 19:47:01 -07:00
Colin Basnett
494c5b116b
Users can now choose not to import either the mesh or the armature when importing a PSK
2022-06-27 18:15:14 -07:00
Colin Basnett
7c9d13686f
Replaced explicit quaternion conjugation with call to conjugated function
2022-06-27 18:12:21 -07:00
Colin Basnett
4937f8f779
Refactoring to reduce pointless class encapsulation when just a function would do.
2022-06-27 18:11:49 -07:00
Colin Basnett
edafa1cfd7
Fix for bug #21 . Bone names can now only contain alphanumeric, space and underscore characters.
2022-05-20 17:13:12 -07:00
Colin Basnett
a1bbf4fb1e
Fixed a bug where weighting information would be lost when exporting non-raw mesh data
2022-05-19 17:32:21 -07:00
Colin Basnett
0d779b8174
Added option to swap between exporting raw mesh data or mesh data after non-armature modifiers.
2022-05-11 15:57:22 -07:00
Colin Basnett
50f6dca565
Initial commit for WYSIWYG PSK mesh export. This will remove the need for applying mesh modifers before export.
2022-05-06 18:43:04 -07:00
Colin Basnett
d4a58caafe
The PSK and PSA import menu items will now be greyed out if in the wrong context, and a tooltip will be shown indicating what the issue is (e.g., having the wrong type of object selected)
2022-05-05 20:56:52 -07:00
Colin Basnett
1eafb71dce
* Fixed a bug where the action name prefix could be applied even if the checkbox was deselected
...
* Fixed a typo in the PSA reader
* Added the ability to define the bone length of imported PSK armatures
* The PSK import options (extra UVs, vertex colors etc.) are now actually respected if turned off
* Ran automated formatting on all the code to quell the PEP8 gods
* Incremented version to 3.0.0
2022-04-24 22:08:36 -07:00
Colin Basnett
a5955bf09b
Lots of interface tweaks
2022-04-04 00:32:12 -07:00
Colin Basnett
eb7a497010
Fixed the options of many properties to not be ANIMATABLE
2022-03-05 13:43:24 -08:00
Colin Basnett
5e7c2535e2
* Unified how bones are filtered for export based on export settings (bone filter mode + bone groups)
...
* Bone Group filtering now works properly for PSK export
* Fixed a number of bugs that broke animation export
2022-02-12 02:07:12 -08:00