vault backup: 2024-02-13 21:57:16
This commit is contained in:
parent
e2968944d4
commit
c6ab3c7902
@ -152,6 +152,37 @@ for obj in bpy.data.objects:
|
|||||||
for setting in currentmesh.polygons:
|
for setting in currentmesh.polygons:
|
||||||
setting.use_smooth = True
|
setting.use_smooth = True
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## NLA Action遍历
|
||||||
|
```c++
|
||||||
|
import bpy
|
||||||
|
import os
|
||||||
|
import math
|
||||||
|
|
||||||
|
for action in bpy.data.actions:
|
||||||
|
print(action)
|
||||||
|
|
||||||
|
bpy.data.actions["AS_ch0100_016_AL_walk"].name = "AS_ch0100_016_AL_walk"
|
||||||
|
|
||||||
|
|
||||||
|
bpy.context.object.animation_data.nla_tracks.active = bpy.context.object.animation_data.nla_tracks[0]
|
||||||
|
|
||||||
|
|
||||||
|
# You can set an object's action like:
|
||||||
|
# object.animation_data.action = action
|
||||||
|
print(bpy.data.objects["SM_ch0100.ao"].animation_data.action)
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
取得当前激活状态的NLA Action
|
||||||
|
```python
|
||||||
|
for i in bpy.data.objects:
|
||||||
|
for j in i.animation_data.nla_tracks.values():
|
||||||
|
for k in j.strips.values():
|
||||||
|
if k.active:
|
||||||
|
print(k)
|
||||||
|
```
|
||||||
# 其他
|
# 其他
|
||||||
获取UModel解包游戏所需的AES Key:https://cs.rin.ru/forum/viewtopic.php?t=100672
|
获取UModel解包游戏所需的AES Key:https://cs.rin.ru/forum/viewtopic.php?t=100672
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user