STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
300
游戏中
1,717
在线
成立于
2013 年 11 月 8 日
所有讨论 > Bug Reports > 主题详情
xdshot 2020 年 6 月 14 日 上午 6:22
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.
< >
正在显示第 1 - 6 条,共 6 条留言
xdshot 2020 年 6 月 14 日 上午 6:24 
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 2020 年 6 月 15 日 上午 10:01 
What format version is the file in question?
xdshot 2020 年 6 月 15 日 下午 3:14 
<!-- dmx encoding binary 3 format model 9 --
xdshot 2022 年 1 月 31 日 上午 5:46 
Bump. Would be nice if there's a code condition to see both parameters instead of relying on version detection.
此论坛的一名版主已表示此帖子解答了原先的主题。
Artfunkel 2022 年 2 月 20 日 上午 8:31 
Fixed in 3.2.
xdshot 2022 年 2 月 20 日 上午 8:34 
Thank you!
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50

所有讨论 > Bug Reports > 主题详情