STEAM-GRUPPE
Blender Source Tools BleST
STEAM-GRUPPE
Blender Source Tools BleST
332
I SPIL
1,948
ONLINE
Grundlagt:
8. november 2013
Alle diskussioner > Help > Trådoplysninger
GoblinCrusher 7. okt. 2018 kl. 7:27
Traceback error when exporting DMX
Hello, I'm getting this error when trying to export a model from Blender using Source Tools. I've seen some discussions around this subject, but it's been about importing, OR the thread has ended with "oh nvm i figured it out"...

Anyone know what's up?

Blender Source Tools: exporting Draenei_Male - Baking... - D:\Users\Alfred\Desktop\LetsTryBlender\DMX\Draenei_Male.dmx - Loading flex controllers from text block "flex_Draenei_Male" WARNING: 8434 excess weight links beneath scene threshold of 0.23 culled on "Draenei_Male". Array iterator out of range: (index 18074) Traceback (most recent call last): File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 208, in execute self.exportId(context, id) File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 548, in exportId self.files_exported += write_func(id, bake_results, self.sanitiseFilename(export_name), path) File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 1710, in writeDMX shape_vert = shape.vertices[ob_vert.index] IndexError: bpy_prop_collection[index]: index 18074 out of range, size 18074 location: <unknown location>:-1 location: <unknown location>:-1

The Source Tools setup is identical to a previous model I exported (just changed relevant paths and names ofc) which worked just fine.

Here's the Blend session (NSFW WARNING, male nudity)
https://www.dropbox.com/s/rf72ffm6asc8uv1/Draedaddy.blend?dl=0

Also QC, 'cause why not:

$CD "D:\Users\Alfred\Desktop\LetsTryBlender\DMX\" $modelname "avalonsfm\draedaddy\draedaddy.mdl" $model "body" "Draenei_Male.dmx" $model "hair" "Draenei_Male_Hair.dmx" $mostlyopaque $cdmaterials "models\avalonsfm\draedaddy\" $sequence "idle" "Draenei_Male.dmx" { fps 1 }
Oprindeligt skrevet af Momo:
This is a long shot but it might have something to do with your mirror modifier and the shape keys- since the addon tries to apply all modifiers before exporting, and the mirror modifier can't be used on a mesh with shape keys.
< >
Viser 1-3 af 3 kommentarer
Forfatteren af denne tråd har angivet, at dette indlæg besvarer det oprindelige emne.
Momo 7. okt. 2018 kl. 10:09 
This is a long shot but it might have something to do with your mirror modifier and the shape keys- since the addon tries to apply all modifiers before exporting, and the mirror modifier can't be used on a mesh with shape keys.
GoblinCrusher 7. okt. 2018 kl. 13:42 
That actually turned out to be exactly the issue. Everything worked out fine after I applied the modifiers. Had to redo the flexes I'd make but oh well :)
Momo 8. okt. 2018 kl. 3:28 
Great! Glad I could help.

Feel free to mark the post as a solution so others can find it more easily if they run into the same issue as you.
Sidst redigeret af Momo; 8. okt. 2018 kl. 3:29
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50

Alle diskussioner > Help > Trådoplysninger
Dato opslået: 7. okt. 2018 kl. 7:27
Indlæg: 3