STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
232
IN-GAME
1,548
ONLINE
Founded
8 November, 2013
All Discussions > Bug Reports > Topic Details
xdshot 14 Jun, 2020 @ 6:22am
DMX duration keyword
https://github.com/Artfunkel/BlenderSourceTools/blob/c1bf515aeda44ad9704870bdd16b8e144f6ff530/io_scene_valvesource/import_smd.py#L1657

Some dmx happen to have "duration" key word exported, despite not meeting version condition in code. Ex. L4D2 animations DMXs included in starter kit.
< >
Showing 1-6 of 6 comments
xdshot 14 Jun, 2020 @ 6:24am 
Importing DMX animation "coach_idle_standing_calm_rifle" Traceback (most recent call last): File "/home/xdshot/.config/blender/2.83/scripts/addons/io_scene_valvesource/datamodel.py", line 319, in __getitem__ return super().__getitem__(item) KeyError: 'durationTime' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/xdshot/.config/blender/2.83/scripts/addons/io_scene_valvesource/import_smd.py", line 75, in execute self.num_files_imported = self.readDMX(filepath, self.properties.upAxis, self.properties.rotMode) File "/home/xdshot/.config/blender/2.83/scripts/addons/io_scene_valvesource/import_smd.py", line 1622, in readDMX duration = timeFrame["duration" if dm.format_ver >= 11 else "durationTime"] File "/home/xdshot/.config/blender/2.83/scripts/addons/io_scene_valvesource/datamodel.py", line 321, in __getitem__ raise AttributeError("No attribute \"{}\" on {}".format(item,self)) from e io_scene_valvesource.datamodel.AttributeError: 'Invalid DMX file: No attribute "durationTime" on <Datamodel element "unnamed" (DmeTimeFrame)>'
Artfunkel 15 Jun, 2020 @ 10:01am 
What format version is the file in question?
xdshot 15 Jun, 2020 @ 3:14pm 
<!-- dmx encoding binary 3 format model 9 --
xdshot 31 Jan, 2022 @ 5:46am 
Bump. Would be nice if there's a code condition to see both parameters instead of relying on version detection.
A moderator of this forum has indicated that this post answers the original topic.
Artfunkel 20 Feb, 2022 @ 8:31am 
Fixed in 3.2.
xdshot 20 Feb, 2022 @ 8:34am 
Thank you!
< >
Showing 1-6 of 6 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details