From 40f712add41eab7f95563dc34bf96ce687646107 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Wed, 9 Oct 2024 17:51:55 +0800 Subject: [PATCH] vault backup: 2024-10-09 17:51:55 --- .../导出PSK_PSA脚本 & 部分UModel AES Key.md | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md b/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md index 75f5101..df044a3 100644 --- a/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md +++ b/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md @@ -597,6 +597,7 @@ on BtnBase pressed do ) ``` ### AdditiveAnimation +将路径正确的AdditiveAnimation动画路径加入LstAnims中。 ```c++ Anims = #() if DotNetObject == undefined then @@ -627,4 +628,27 @@ else ) ``` -### ExportAnimation \ No newline at end of file +### ExportAnimation +***核心逻辑*** +```c++ +on BtnExport pressed do +( + BoneRotationArray = #() + if (LstAnims.items.count>0 and BaseAnimFileName != undefined) then + ( + XMap = DDLX.selection + YMap = DDLY.selection + ZMap = DDLZ.selection + AixMap = DDLAix.selection + if g_pelvis then + ( + boneNum = 1 + ) + else boneNum = 2 + for i=1 to LstAnims.items.count do + ( + CalculateAddRotation i + ) + ) +) +``` \ No newline at end of file