This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# 删除当前选中骨架对象中所有以 "Bip" 开头的骨骼的关键帧 | |
# 确保处于正确的上下文中 | |
if bpy.context.object and bpy.context.object.type == 'ARMATURE': | |
armature = bpy.context.object # 获取当前选中的骨架对象 | |
action = armature.animation_data.action # 获取当前动作 | |
# 检查是否有动作 | |
if action: | |
#遍历动作中的每个 FCurve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UNetModel( | |
(time_embed): Sequential( | |
(0): Linear(in_features=320, out_features=1280, bias=True) | |
(1): SiLU() | |
(2): Linear(in_features=1280, out_features=1280, bias=True) | |
) | |
(label_emb): Sequential( | |
(0): Sequential( | |
(0): Linear(in_features=2816, out_features=1280, bias=True) | |
(1): SiLU() |