STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
393
IN-GAME
2,258
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
Can't Import DMX Animation from HL:Alyx S2FM
Hello:

I made a pose as an animation from Source 2 Filmmaker in HL:Alyx, and export the DMX file as either "Animation" or "Taunt Animation".

When I try to import the DMX to my model in Blender, it failed to apply on my model and this show up at console:

Originally posted by PanzerDame:

DMX IMPORTER: now working on stand_attention.dmx
- Loading DMX...
Traceback (most recent call last):
File "C:\Users\<my name>\AppData\Roaming\Blender Foundation\Blender\4.4\scripts\addons\io_scene_valvesource\datamodel.py", line 985, in load
read_element(line[0], line_tracker)
File "C:\Users\<my name>\AppData\Roaming\Blender Foundation\Blender\4.4\scripts\addons\io_scene_valvesource\datamodel.py", line 872, in read_element
return element_chain.pop()
^^^^^^^^^^^^^^^^^^^
IndexError: pop from empty list

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\<my name>\AppData\Roaming\Blender Foundation\Blender\4.4\scripts\addons\io_scene_valvesource\import_smd.py", line 84, in execute
self.num_files_imported = self.readDMX(filepath, self.properties.upAxis, self.properties.rotMode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\<my name>\AppData\Roaming\Blender Foundation\Blender\4.4\scripts\addons\io_scene_valvesource\import_smd.py", line 1253, in readDMX
dm = datamodel.load(filepath)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\<my name>\AppData\Roaming\Blender Foundation\Blender\4.4\scripts\addons\io_scene_valvesource\datamodel.py", line 987, in load
raise DatamodelParseError("Parsing of {} failed on line {}".format(path, line_tracker.line)) from ex
io_scene_valvesource.datamodel.DatamodelParseError: Parsing of C:\Program Files (x86)\Steam\steamapps\common\Half-Life Alyx\content\hlvr_addons\source_filmmaker_2\models\infinity_crown_delia_20230513\animation_S2FM\stand_attention.dmx failed on line 25

I do not know what this message meaning.
Should I do the pose at Source 1 Filmmaker instead?

Thanks,
PanzerDame
< >
Showing 1-5 of 5 comments
Artfunkel 19 Jun @ 12:31am 
Source Filmmaker has a different animation format from the animations that you compile into a model for use in a normal Source game.

However, this is a DMX parsing error, and that at least should work. Please upload the DMX file you are trying to import.
Zappy 19 Jun @ 3:28am 
Originally posted by Artfunkel:
Source Filmmaker has a different animation format from the animations that you compile into a model for use in a normal Source game.
I don't know about Source 2, but for Source 1, Source Filmmaker's StudioMDL can successfully compile DMX animations from Source Filmmaker's [right-click an animation set] > "Export" > "Animation" (both ASCII and non-ASCII) and "Taunt Animation" (both Z-up and Y-up) options, and Team Fortress 2's StudioMDL can successfully compile DMX animations from the "Taunt Animation" (both Z-up and Y-up) option. (In fact, the "Taunt Animation" option was explicitly made for that very purpose!)

Zip file containing all five export types for Source 1, for use with Source Filmmaker's (or Team Fortress 2's) "player/hwm/medic.mdl" model, simply moving/stretching the left arm (and some flexes, which are skipped by StudioMDL): https://drive.google.com/file/d/1mzDdQYnXiPGf2ZXk4Cr1ZoafiH4ML6HH

(Not even Source Filmmaker's StudioMDL can compile the "Facial Animation" type - but there's still an argument to be made that it's an official DMX animation format, and as such could be supported to better integrate with official Source tools anyway. I wouldn't worry about that one, though.)
Last edited by Zappy; 19 Jun @ 3:53am
PanzerDame 19 Jun @ 10:22pm 
Sorry for late reply. (Initial posting is close to my sleep time)
Thank you for you two gentlemen (or ladies) help.

I just remembered that the Taunt Animation menu in S2FM shown StudioMDL is missing, and the StudioMDL is nowhere be found in the entire Half-Life: Alyx folder. I believe this might be the cause that my pose DMX cannot be import into Blender.

i am using the Source 1 Filmmaker for now, as my previous posing does work in Blender from there. Would have to return to type those QC for my custom model, but this seems the only choice for now.

Originally posted by Artfunkel:
However, this is a DMX parsing error, and that at least should work. Please upload the DMX file you are trying to import.
Do you still need my DMX file? Should I sent it via DM?
I can send you along with my model DMX as well.
Yes, I would still like the DMX file.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

All Discussions > Help > Topic Details