STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
391
游戏中
2,312
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
GoopedUpGaming 2022 年 12 月 31 日 上午 11:27
Two Python traceback errors
Not sure what to do, receiving python errors when exporting one mesh+one armature as .DMX binary 9 model 22.

Both using BST 3.2.5.

On blender 2.93.9:
Python: Traceback (most recent call last): File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_valvesource\export_smd.py", line 215, in execute self.exportId(context, exportable.item) File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_valvesource\export_smd.py", line 551, in exportId self.files_exported += write_func(id, bake_results, self.sanitiseFilename(export_name), path) File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_valvesource\export_smd.py", line 1971, in writeDMX anim_len = animationLength(ad) File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_valvesource\utils.py", line 312, in animationLength if ad.action: AttributeError: 'NoneType' object has no attribute 'action' location: <unknown location>:-1

On Blender 3.3 or 3.4.1:
Python: Traceback (most recent call last): File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_scene_valvesource\export_smd.py", line 214, in execute for exportable in getSelectedExportables(): File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_scene_valvesource\utils.py", line 514, in getSelectedExportables for exportable in getExportablesForObject(ob): File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_scene_valvesource\utils.py", line 498, in getExportablesForObject item_name = exportable.item.name AttributeError: 'NoneType' object has no attribute 'name'

100% totally fresh installs each time I tried
< >
正在显示第 1 - 15 条,共 16 条留言
GoopedUpGaming 2022 年 12 月 31 日 上午 11:29 
Add-on was properly installed each time, and I gave blender a restart after installing, before trying to export, each time.
Artfunkel 2023 年 1 月 1 日 上午 6:13 
Please upload your blend file.
ErlGrey 2023 年 1 月 1 日 上午 9:00 
You need to create a keyframe animation for your armature. Press ctrl+tab with your armature selected and press i > Location, Rotation and scale. Hope it helps, it worked for me
ErlGrey 2023 年 1 月 1 日 上午 9:02 
^ Then export everything (you can later delete this animation). I recommend to use proportion trick for any of your custom humanoid armatures if they are about using playermodel native anims
最后由 ErlGrey 编辑于; 2023 年 1 月 1 日 上午 9:02
ErlGrey 2023 年 1 月 1 日 上午 9:04 
One keyframe is enough
GoopedUpGaming 2023 年 1 月 1 日 上午 10:17 
引用自 Artfunkel
Please upload your blend file.

ErlGrey's answer worked for me but here's the blend if you want to search for other problems.
I was attempting to only export the head mesh and armature.
https://www100.zippyshare.com/v/AsAIv7Lv/file.html
GoopedUpGaming 2023 年 1 月 1 日 上午 11:45 
引用自 Artfunkel
Please upload your blend file.

**UNMARKED AS SOLVED**
ErlGrey's answer allows the .dmx to export but once imported to Source 2 modeldoc, it is stuck facing one direction no matter how it's rotated before export. It seems like a sorta working hacky fix but isn't fully viable at least in my attempt
ErlGrey 2023 年 1 月 1 日 下午 1:56 
Works for source one (Gmod atleast). Have you tried modifing $origin in qc file?
Artfunkel 2023 年 1 月 21 日 上午 6:52 
I can't download your file and can't reproduce the issue locally, so I don't really know what caused this. But I was able to put some checks into the code to handle things being unexpectedly null.
GoopedUpGaming 2023 年 1 月 23 日 上午 10:53 
Thank you! Not sure why you can't download the file, maybe zippyshare limitation? I'll give this export another shot
Artfunkel 2023 年 1 月 23 日 上午 10:54 
The changes haven't left my computer yet. Please try to upload your file to another site so that I can test whether I've actually fixed the issue.
GoopedUpGaming 2023 年 1 月 27 日 上午 8:22 
Coyc 2024 年 4 月 20 日 上午 9:42 
Python: Traceback (most recent call last):
File "C:\Users\Марк\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\io_scene_valvesource\export_smd.py", line 209, in execute
self.exportId(context, id)
File "C:\Users\Марк\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\io_scene_valvesource\export_smd.py", line 551, in exportId
self.files_exported += write_func(id, bake_results, self.sanitiseFilename(export_name), path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Марк\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\io_scene_valvesource\export_smd.py", line 1028, in writeSMD
anim_len = animationLength(ad) + 1 # frame 0 is a frame too...
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Марк\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\io_scene_valvesource\utils.py", line 311, in animationLength
if ad.action:
^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'action'

wtf
ErlGrey 2024 年 4 月 22 日 上午 12:36 
Blender 4.1 has broken sharp edges, so use 4.0 or below.
Blue 2024 年 5 月 29 日 下午 9:28 
引用自 ErlGrey
Blender 4.1 has broken sharp edges, so use 4.0 or below.

not technically broken, just moved. the auto smoothing has been replaced with a modifier called "smooth by angle" or something.
< >
正在显示第 1 - 15 条,共 16 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情