STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
385
IN-GAME
2,162
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
Taco 14 Feb, 2016 @ 3:58am
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
Last edited by Taco; 14 Feb, 2016 @ 3:59am
< >
Showing 1-8 of 8 comments
Zappy 14 Feb, 2016 @ 4:01am 
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 14 Feb, 2016 @ 4:07am 
Oh, that never occured to me, thanks, SMD works fine.
Last edited by Taco; 14 Feb, 2016 @ 4:19am
Taco 14 Feb, 2016 @ 4:53am 
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 14 Feb, 2016 @ 5:27am 
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 14 Feb, 2016 @ 5:46am 
Ah, ok.
Artfunkel 14 Feb, 2016 @ 8:33am 
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 14 Feb, 2016 @ 11:08am 
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 17 Feb, 2016 @ 1:38am 
I suppose you'll need to use DMX for that, then.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: 14 Feb, 2016 @ 3:58am
Posts: 8