From 2bf70c73c95c496d127789e9bf655979af58128b Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Thu, 7 Sep 2023 21:42:17 +0800 Subject: [PATCH] vault backup: 2023-09-07 21:42:17 --- .../导出PSK_PSA脚本 & 部分UModel AES Key.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md b/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md index f927274..87da3e0 100644 --- a/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md +++ b/06-DCC/Blender/导出PSK_PSA脚本 & 部分UModel AES Key.md @@ -102,6 +102,20 @@ for root, subdirs, files in os.walk(psaDirPath): bpy.ops.object.delete() ``` +## 添加平滑组 +```python +import bpy +import os +import math + +for obj in bpy.data.objects: + if obj.type=='MESH': + obj.data.use_auto_smooth = True + obj.data.auto_smooth_angle = math.radians(180) + currentmesh = obj.data + for setting in currentmesh.polygons: + setting.use_smooth = True +``` # 其他 获取UModel解包游戏所需的AES Key:https://cs.rin.ru/forum/viewtopic.php?t=100672