STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
270
IN-GAME
1,599
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
SeroRonin 26 Oct, 2021 @ 8:09pm
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
Last edited by SeroRonin; 26 Oct, 2021 @ 8:54pm
< >
Showing 1-2 of 2 comments
Pte Jack 27 Oct, 2021 @ 9:58am 
Why try to write code when BleST will do it for you.

https://i.imgur.com/gc2GWUM.png
Last edited by Pte Jack; 27 Oct, 2021 @ 10:01am
SeroRonin 27 Oct, 2021 @ 10:37am 
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)
< >
Showing 1-2 of 2 comments
Per page: 1530 50

All Discussions > Help > Topic Details