STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
290
游戏中
1,945
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
Taco 2016 年 2 月 14 日 上午 3:58
Unable to export Vertex Animation?
Not sure if this is a bug or if I'm doing something wrong. I have a model I'm attempting to export with a vertex animation I created with simple keyframing on the default action. When I play the animation from the Vertex Animation window it appears to be properly applied, but no matter what I do, when I try to export the DMX I end up with this error in console:

Blender Source Tools: exporting test - Baking... - Generating vertex animation "vertexanim" - C:\Users\Taco\Desktop\test.dmx Traceback (most recent call last): File "C:\Users\Taco\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\ad dons\io_scene_valvesource\export_smd.py", line 213, in execute self.exportId(context, exportable.get_id()) File "C:\Users\Taco\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\ad dons\io_scene_valvesource\export_smd.py", line 519, in exportId self.files_exported += write_func(id, bake_results, self.sanitiseFilename(ex port_name), path) File "C:\Users\Taco\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\ad dons\io_scene_valvesource\export_smd.py", line 1773, in writeDMX vca_arm.pose.bones[i+1].matrix = bake_mat UnboundLocalError: local variable 'bake_mat' referenced before assignment

When I remove the vertex animation, the DMX exports fine. Using Blender 2.74 with Source Tools 2.6.2
最后由 Taco 编辑于; 2016 年 2 月 14 日 上午 3:59
< >
正在显示第 1 - 8 条,共 8 条留言
Zappy 2016 年 2 月 14 日 上午 4:01 
I don't think vertex animation has been implemented for DMX yet in the Blender Source Tools. Use SMD instead, so you'll get a VTA you can use. (Yes, you can use VTAs on DMX meshes. Even if the DMX has other flexes embedded already.)
Taco 2016 年 2 月 14 日 上午 4:07 
Oh, that never occured to me, thanks, SMD works fine.
最后由 Taco 编辑于; 2016 年 2 月 14 日 上午 4:19
Taco 2016 年 2 月 14 日 上午 4:53 
Are you sure about the VTA file working on DMX models that already have flex data?
Compiler seems to disagree:

ERROR: Option_VertexCacheAnimationFile: Flexes already defined. vcafile can be only flex option in $model block
Zappy 2016 年 2 月 14 日 上午 5:27 
Well, for normal flexes, yes, but StudioMDL seems to complain because there can't both be normal flexes and vertex animation on the same part of the same model.
Taco 2016 年 2 月 14 日 上午 5:46 
Ah, ok.
Artfunkel 2016 年 2 月 14 日 上午 8:33 
DMX vertex animation is fully supported. This bug is caused by the export already having an armature and will be fixed in the next update.
Taco 2016 年 2 月 14 日 上午 11:08 
I see, thanks for the heads up.

I'm also wondering, is it possible to export more than a single animation per model? The way its set up in the Source Tools as well as the generated QC implies you can add more than one but I haven't been able to work out what to do for that (The Option_VertexCacheAnimationFile: Flexes already defined error appears if more than one VTA file is referenced under $model)
Artfunkel 2016 年 2 月 17 日 上午 1:38 
I suppose you'll need to use DMX for that, then.
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2016 年 2 月 14 日 上午 3:58
回复数: 8