STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
390
游戏中
2,300
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
SeroRonin 2021 年 10 月 26 日 下午 8:09
Export DMX via python script
I need to export a ton of actions from my blend as DMX animations, but the animations are being transferred from one armature to another and need both to be set to an action

I kinda understand python, but I have no idea what the commands/methods are for BST. How would I go about exporting a DMX using the second armature as the active object for each action present?

What I currently have:
import bpy baseArmature = bpy.data.objects['baseArmature'] exportArmature = bpy.data.objects['exportArmature'] for actionData in bpy.data.actions: print(baseArmature) currAction = actionData.name print(currAction) baseArmature.animation_data.action = bpy.data.actions.get(currAction) exportArmature.animation_data.action = bpy.data.actions.get(currAction) EXPORT CODE HERE
最后由 SeroRonin 编辑于; 2021 年 10 月 26 日 下午 8:54
< >
正在显示第 1 - 2 条,共 2 条留言
Pte Jack 2021 年 10 月 27 日 上午 9:58 
Why try to write code when BleST will do it for you.

https://i.imgur.com/gc2GWUM.png
最后由 Pte Jack 编辑于; 2021 年 10 月 27 日 上午 10:01
SeroRonin 2021 年 10 月 27 日 上午 10:37 
Because I need to switch the actions of two armatures at once, while maintaining that I am only exporting from a specific armature (Due to constraints and how the animations are being "transferred")

Someone else managed to get me the line, for anyone else who finds this it's supposedly this, but I need to test it
bpy.ops.export_scene.smd(export_scene=True)
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情