vault backup: 2024-10-09 17:51:55
This commit is contained in:
@@ -597,6 +597,7 @@ on BtnBase pressed do
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
### AdditiveAnimation
|
### AdditiveAnimation
|
||||||
|
将路径正确的AdditiveAnimation动画路径加入LstAnims中。
|
||||||
```c++
|
```c++
|
||||||
Anims = #()
|
Anims = #()
|
||||||
if DotNetObject == undefined then
|
if DotNetObject == undefined then
|
||||||
@@ -627,4 +628,27 @@ else
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
### ExportAnimation
|
### 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
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
```
|
Reference in New Issue
Block a user